Merge branch 'maint'

This commit is contained in:
Bastien 2020-02-07 20:44:31 +01:00
commit 4fe4d12a79
2 changed files with 1 additions and 2 deletions

View File

@ -1156,7 +1156,7 @@ may have been stored before."
(org-capture-empty-lines-after)
(unless (org-at-heading-p) (outline-next-heading))
(org-capture-mark-kill-region origin (point))
(org-capture-narrow beg (1- (point)))
(org-capture-narrow beg (point))
(when (or (search-backward "%?" beg t)
(search-forward "%?" nil t))
(replace-match ""))))))

View File

@ -208,7 +208,6 @@
(org-capture-templates
`(("t" "Todo" entry (file+headline ,file "A") "** H1 %?"))))
(org-capture nil "t")
(goto-char (point-max))
(insert "Capture text")
(org-capture-finalize))
(buffer-string))))