Ensure inserting links works when the source buffer is narrowed

This commit is contained in:
Daniel - 2023-08-15 18:11:47 +02:00
parent 53f60f1d82
commit e30ab3f260
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 3 additions and 2 deletions

View File

@ -1501,8 +1501,9 @@ linking to any item."
;; the target file
(save-mark-and-excursion
(with-current-buffer (find-file-noselect (nth 1 target-pointer))
(goto-char pom)
(point-marker))))
(org-with-wide-buffer
(goto-char pom)
(point-marker)))))
(t (user-error "Invalid location"))))))
(defun db/org-find-links-to-current-item (arg)