forked from mirrors/org-mode
fixup! org-capture-set-target-location: Improve error reporting for malformed target
Reported-by: Zhitao <zhitaao.gong@gmail.com> Link: https://orgmode.org/list/CACcmFoCvtyGBKR7mTjdQOd-w82wz-xcavnpEVT=6mFOWpo1T1w@mail.gmail.com
This commit is contained in:
parent
4254a54f88
commit
8ccda1737b
|
@ -1057,7 +1057,7 @@ Store them in the capture property list."
|
|||
(org-capture-put :exact-position (point))
|
||||
(setq target-entry-p
|
||||
(and (derived-mode-p 'org-mode) (org-at-heading-p)))))
|
||||
(`(file+olp+datetree ,(and path (pred stringp)) . ,(and outline-path (guard outline-path)))
|
||||
(`(file+olp+datetree ,(and path (pred stringp)) . ,outline-path)
|
||||
(let ((m (if outline-path
|
||||
(org-find-olp (cons (org-capture-expand-file path)
|
||||
outline-path))
|
||||
|
|
Loading…
Reference in New Issue