]> git.eshelyaron.com Git - emacs.git/commit
* lisp/outline.el: Bind margin mouse event to cycle outlines (bug#57813)
authorJuri Linkov <juri@linkov.net>
Tue, 20 Sep 2022 16:11:58 +0000 (19:11 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 20 Sep 2022 16:11:58 +0000 (19:11 +0300)
commitcefda4a6c521a01b031f5e94a31473a91d06eaea
tree510c0e5c0dca32fa009258646b8491ccf341b321
parent120ade62cd26dd502f1ae3784079e4cd88607a0b
* lisp/outline.el: Bind margin mouse event to cycle outlines (bug#57813)

(outline-minor-mode): In mode keymap bind
'right/left-margin mouse-1' to outline-cycle, and
'right/left-margin S-mouse-1' to outline-cycle-buffer.
(outline-hide-subtree, outline-show-subtree): Add save-excursion
to keep point unmoved after mouse click.
(outline-cycle): Add optional arg 'event' like in
outline-hide-subtree and outline-show-subtree, and
add save-excursion to keep point unmoved after mouse click.
(outline--make-button-overlay, outline--make-margin-overlay):
Put overlay property 'evaporate' to t.
(outline--insert-open-button, outline--insert-close-button):
Remove temporary attempts to bind margin-local mouse events.
lisp/outline.el