aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2022-01-11 10:56:54 +0200
committerJuri Linkov2022-01-11 10:56:54 +0200
commit0b0a8dab6817a974eb8d7baf18efe9fb5dc99c2b (patch)
tree1d2cbb8790faea9cd99600882b47e53e1eb0b10f
parent38575b72037fa727f3d633434cda6c529ae58bc4 (diff)
downloademacs-0b0a8dab6817a974eb8d7baf18efe9fb5dc99c2b.tar.gz
emacs-0b0a8dab6817a974eb8d7baf18efe9fb5dc99c2b.zip
* lisp/outline.el (outline-minor-mode-cycle--bind): Fix outline-on-heading-p.
When calling outline-on-heading-p, set its argument INVISIBLE-OK to t, so when <backtab> (bound to outline-cycle-buffer) hides the current outline at a deep level, <backtab> should continue cycling outlines even when the current outline heading is invisible. It worked this way before the recent change that moved cycling keys from font-lock text properties to outline-minor-mode keymap with :filter.
-rw-r--r--lisp/outline.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/outline.el b/lisp/outline.el
index 7a42cdc532b..4027142c94e 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -197,7 +197,7 @@ in the file it applies to.")
197 ,(or filter 197 ,(or filter
198 (lambda (cmd) 198 (lambda (cmd)
199 (when (and outline-minor-mode-cycle 199 (when (and outline-minor-mode-cycle
200 (outline-on-heading-p) 200 (outline-on-heading-p t)
201 (or (not (functionp outline-minor-mode-cycle-filter)) 201 (or (not (functionp outline-minor-mode-cycle-filter))
202 (funcall outline-minor-mode-cycle-filter))) 202 (funcall outline-minor-mode-cycle-filter)))
203 cmd)))))) 203 cmd))))))