]> git.eshelyaron.com Git - emacs.git/commit
Fix the width of margins for icons in outline-minor-mode (bug#59719)
authorJuri Linkov <juri@linkov.net>
Fri, 2 Dec 2022 07:54:22 +0000 (09:54 +0200)
committerJuri Linkov <juri@linkov.net>
Fri, 2 Dec 2022 07:54:22 +0000 (09:54 +0200)
commitbf66b90b9aea61799c089e91ceec3ce237195f3a
treea054fa45556e011bfe43a03370ba122bb02b864d
parent2e4960d63df27395f4d9a7b15a5f9c5b872f4b06
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.
doc/lispref/display.texi
lisp/emacs-lisp/icons.el
lisp/outline.el