mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
org-macs: Remove restriction when locating markers
* org-macs.el: Remove restriction when locating markers Allows org-with-point-at to locate point outside the current restriction.
This commit is contained in:
parent
3a1e6a3c3a
commit
61e06a038a
@ -154,9 +154,9 @@ We use a macro so that the test can happen at compilation time."
|
||||
`(let ((,mpom ,pom))
|
||||
(save-excursion
|
||||
(if (markerp ,mpom) (set-buffer (marker-buffer ,mpom)))
|
||||
(save-excursion
|
||||
(goto-char (or ,mpom (point)))
|
||||
,@body)))))
|
||||
(org-with-wide-buffer
|
||||
(goto-char (or ,mpom (point)))
|
||||
,@body)))))
|
||||
(def-edebug-spec org-with-point-at (form body))
|
||||
(put 'org-with-point-at 'lisp-indent-function 1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user