Merge branch 'maint'

This commit is contained in:
Bastien 2020-02-05 07:51:55 +01:00
commit 524a6102e5
1 changed files with 8 additions and 5 deletions

View File

@ -8929,7 +8929,10 @@ It also looks at the text of the entry itself."
(setq trg (and (string-match org-link-bracket-re l)
(match-string 1 l)))
(if (or (not trg) (string-match org-link-any-re trg))
(org-with-wide-buffer
;; Don't use `org-with-wide-buffer' here as
;; opening the link may result in moving the point
(save-restriction
(widen)
(goto-char marker)
(when (search-forward l nil lkend)
(goto-char (match-beginning 0))