]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/outline.el (outline-minor-mode-cycle--bind): Fix outline-on-heading-p.
authorJuri Linkov <juri@linkov.net>
Tue, 11 Jan 2022 08:56:54 +0000 (10:56 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 11 Jan 2022 08:56:54 +0000 (10:56 +0200)
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.

lisp/outline.el

index 7a42cdc532b61730ceea6b49aea6b9087715dfb4..4027142c94e2dd91a1aee655e2ebc1827fa39eb7 100644 (file)
@@ -197,7 +197,7 @@ in the file it applies to.")
       ,(or filter
            (lambda (cmd)
              (when (and outline-minor-mode-cycle
-                        (outline-on-heading-p)
+                        (outline-on-heading-p t)
                         (or (not (functionp outline-minor-mode-cycle-filter))
                             (funcall outline-minor-mode-cycle-filter)))
                cmd))))))