summaryrefslogtreecommitdiff
path: root/doc/emacs/text.texi
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-09-19 22:35:51 +0300
committerJuri Linkov <juri@linkov.net>2022-09-19 22:35:51 +0300
commit0a15956f495338b4f2260c7676a6040436a90645 (patch)
tree7106c71d2c2714c770266f738932d4a3943bf397 /doc/emacs/text.texi
parentc6d3d97bf5a75e0c4a653f3cc380371f890f4fb3 (diff)
downloademacs-0a15956f495338b4f2260c7676a6040436a90645.tar.gz
* lisp/outline.el (outline-minor-mode-use-margins): New user option.
(outline--use-margins, outline--use-buttons, outline--use-rtl): New buffer-local internal variables. (outline-open, outline-close): Move :ascent center to default of define-icon. Use ASCII-art for text. Fix docstring and help-echo. (outline-close-rtl, outline-open-in-margins) (outline-close-in-margins, outline-close-rtl-in-margins): New icon definitions. (outline-minor-mode-highlight-buffer): Remove outline--insert-open-button since initial outline--fix-up-all-buttons is added now to outline-minor-mode. (outline-minor-mode): Set buffer-local outline--use-buttons, outline--use-margins and outline--use-rtl. Show/hide margins for outline--use-margins. Add hook after-change-functions for editable buffers. Move outline--fix-up-all-buttons for both cases: font-lock and non-font-lock. (outline--use-buttons-p): Remove function. (outline--make-button-overlay): Use outline--use-rtl icon outline-close-rtl. (outline--make-margin-overlay): New function. (outline--insert-open-button, outline--insert-close-button): Add optional arg 'use-margins'. (outline--fix-up-all-buttons): Call outline--insert-close-button and outline--insert-open-button with arg outline--use-margins. (outline-cycle-buffer): Remove outline--fix-up-all-buttons that is already called from outline-flag-region. * lisp/emacs-lisp/icons.el (icons--create): Handle keywords :rotation and :ascent with the default value 'center (bug#57813). * doc/emacs/text.texi (Outline Mode): Mention outline-minor-mode-use-margins.
Diffstat (limited to 'doc/emacs/text.texi')
-rw-r--r--doc/emacs/text.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index fa8eaf09245..35dce18d022 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -1003,6 +1003,11 @@ addition to ellipsis to show that a section is hidden. Using
@kbd{RET} (or clicking on the button with a mouse) will toggle
displaying the section.
+@vindex outline-minor-mode-use-margins
+ If @code{outline-minor-mode-use-margins} is non-@code{nil}, Outline
+minor mode will use the window margins in addition to ellipsis to show
+that a section is hidden.
+
@vindex outline-minor-mode-cycle
If the @code{outline-minor-mode-cycle} user option is
non-@code{nil}, the @kbd{TAB} and @kbd{S-@key{TAB}} keys are enabled on the