summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-04-30 11:42:01 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-04-30 11:42:01 +0200
commit5c12c21a73947e51313a555dfd474af9b3d99e8d (patch)
tree63dfc727d3035f2123a1dd1539a61d5856940598
parent94f902834a0199e4cf5b1de50ff76f35f23cedc9 (diff)
downloadorg-mode-5c12c21a73947e51313a555dfd474af9b3d99e8d.tar.gz
org-capture: Narrow to current captured row
* lisp/org-capture.el (org-capture-place-table-line): Narrow to current captured row and obey :unnarrowed property, like every other target type.
-rw-r--r--lisp/org-capture.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 2666e03..09e230a 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1269,6 +1269,7 @@ may have been stored before."
(point))))
(org-capture-position-for-last-stored 'table-line)
(org-capture-mark-kill-region beg end)
+ (org-capture-narrow beg end)
(when (or (re-search-backward "%\\?" beg t)
(re-search-forward "%\\?" end t))
(replace-match "")))