Browse Source

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.
Nicolas Goaziou 6 years ago
parent
commit
5c12c21a73
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
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 "")))