diff options
author | Juri Linkov <juri@linkov.net> | 2022-10-18 21:13:29 +0300 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2022-10-18 21:13:29 +0300 |
commit | ab1b491f8373742a051aaf554c4604f2b976b414 (patch) | |
tree | 199a852cb4a4e7a76836bc281552731b43f04d04 /lisp/help.el | |
parent | a9f183c760082af5978a8f76df60ca507cb39fea (diff) | |
download | emacs-ab1b491f8373742a051aaf554c4604f2b976b414.tar.gz |
* lisp/outline.el (outline-minor-mode-insert-buttons): New defvar-local.
(outline--make-button-overlay, outline--insert-open-button)
(outline--insert-close-button): Insert button when
outline-minor-mode-insert-buttons is non-nil, otherwise
put an overlay with before-string. (bug#57813)
* lisp/help.el (describe-bindings): Set buffer-local
outline-minor-mode-insert-buttons to t.
* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common):
Set buffer-local outline-minor-mode-use-margins to t. Don't set
outline-regexp for leading spaces because now spaces are not added
in the NEWS buffer.
Diffstat (limited to 'lisp/help.el')
-rw-r--r-- | lisp/help.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el index 1cfd044db8c..0f5342b77d3 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -744,7 +744,8 @@ or a buffer name." (setq-local outline-heading-end-regexp ":\n") (setq-local outline-level (lambda () 1)) (setq-local outline-minor-mode-cycle t - outline-minor-mode-highlight t) + outline-minor-mode-highlight t + outline-minor-mode-insert-buttons t) (outline-minor-mode 1) (save-excursion (goto-char (point-min)) |