Re-fix the new mouse event logic in outline
* lisp/outline.el (outline-show-subtree, outline-hide-subtree): Really fix the mouse logic.
This commit is contained in:
parent
940b414cfe
commit
96ac51427f
1 changed files with 2 additions and 2 deletions
|
@ -944,7 +944,7 @@ Note that this does not hide the lines preceding the first heading line."
|
|||
"Hide everything after this heading at deeper levels.
|
||||
If non-nil, EVENT should be a mouse event."
|
||||
(interactive (list last-nonmenu-event))
|
||||
(when event
|
||||
(when (mouse-event-p event)
|
||||
(mouse-set-point event))
|
||||
(when (and outline-minor-mode-use-buttons outline-minor-mode)
|
||||
(outline--insert-close-button))
|
||||
|
@ -1019,7 +1019,7 @@ If non-nil, EVENT should be a mouse event."
|
|||
(defun outline-show-subtree (&optional event)
|
||||
"Show everything after this heading at deeper levels."
|
||||
(interactive (list last-nonmenu-event))
|
||||
(when event
|
||||
(when (mouse-event-p event)
|
||||
(mouse-set-point event))
|
||||
(when (and outline-minor-mode-use-buttons outline-minor-mode)
|
||||
(outline--insert-open-button))
|
||||
|
|
Loading…
Add table
Reference in a new issue