org-capture.el (org-capture-place-table-line): Fix bug

* org-capture.el (org-capture-place-table-line): Fix bug.

Thanks to Ian Barton for reporting this.
This commit is contained in:
Bastien Guerry 2012-08-19 17:41:01 +02:00
parent de015ad055
commit 92271aecea

View file

@ -1081,8 +1081,8 @@ it. When it is a variable, retrieve the value. Return whatever we get."
(setq end (point))))
(goto-char beg)
(org-capture-position-for-last-stored 'table-line)
(if (or (re-search-backward "%\\?" end t)
(re-search-forward "%\\?" beg t))
(if (or (re-search-backward "%\\?" beg t)
(re-search-forward "%\\?" end t))
(replace-match ""))
(org-table-align)))