Merge branch 'maint'

This commit is contained in:
Bastien Guerry 2014-01-09 11:03:11 +01:00
commit e0f46e9a1d
1 changed files with 2 additions and 1 deletions

View File

@ -2290,7 +2290,8 @@ For all numbers larger than LIMIT, shift them by DELTA."
(save-excursion
(goto-char (org-table-end))
(let ((case-fold-search t)
(s-end (save-excursion (re-search-forward "^\\S-*$\\|\\'" nil t))))
(s-end (min (save-excursion (re-search-forward "^\\S-*$\\|\\'" nil t))
(save-excursion (org-end-of-subtree t)))))
(while (re-search-forward "[ \t]*#\\+tblfm:" s-end t)
(let ((msg "The formulas in #+TBLFM have been updated")
(re (concat key "\\([0-9]+\\)"))