mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-31 11:13:59 +00:00
org-macs: macro org-with-limited-levels' also sets
outline-regexp'
* lisp/org-macs.el (org-with-limited-levels): some functions, like `org-back-to-heading', being deeply based on outline-mode, still refer to `outline-regexp' instead of `org-outline-regexp'.
This commit is contained in:
parent
3e2057732a
commit
ad3563e1c4
@ -348,6 +348,7 @@ point nowhere."
|
||||
(defmacro org-with-limited-levels (&rest body)
|
||||
"Execute BODY with limited number of outline levels."
|
||||
`(let* ((org-outline-regexp (org-get-limited-outline-regexp))
|
||||
(outline-regexp org-outline-regexp)
|
||||
(org-outline-regexp-at-bol (concat "^" org-outline-regexp)))
|
||||
,@body))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user