diff options
author | Juri Linkov <juri@linkov.net> | 2022-12-02 09:54:22 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2022-12-02 09:54:22 +0200 |
commit | bf66b90b9aea61799c089e91ceec3ce237195f3a (patch) | |
tree | a054fa45556e011bfe43a03370ba122bb02b864d /doc | |
parent | 2e4960d63df27395f4d9a7b15a5f9c5b872f4b06 (diff) | |
download | emacs-bf66b90b9aea61799c089e91ceec3ce237195f3a.tar.gz |
Fix the width of margins for icons in outline-minor-mode (bug#59719)
* doc/lispref/display.texi (Icons): Add :width spec.
* lisp/emacs-lisp/icons.el (icons--create): Handle :width as well.
* lisp/outline.el (outline--margin-width, outline-margin-width):
New variables.
(outline-open-in-margins, outline-close-in-margins)
(outline-close-rtl-in-margins): Don't inherit from parents.
Use `:width font' instead of `:height 10'.
(outline-minor-mode): Calculate the number of columns for margins
to fit the icons.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/display.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 60955fd3195..9d929950a7e 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -7124,6 +7124,12 @@ This is only valid for @code{image} icons, and can be either a number (which specifies the height in pixels), or the symbol @code{line}, which will use the default line height in the currently selected window. + +@item :width +This is only valid for @code{image} icons, and can be either a number +(which specifies the width in pixels), or the symbol @code{font}, +which will use the width in pixels of the current buffer’s default +face font. @end table @var{doc} should be a doc string. |