]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/hideshow.el: Simplify mouse binding; Use lexical-binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 19 May 2019 13:36:22 +0000 (09:36 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 19 May 2019 13:36:42 +0000 (09:36 -0400)
commitd0e9113de9783094b4da7f6aeee131194653c325
treedf9758c8188b38068527e3c820172effb1c55721
parent9199643ab2c38cd9e7f81ccff4485463f376e19d
* lisp/progmodes/hideshow.el: Simplify mouse binding; Use lexical-binding

(hs-set-up-overlay, hs-adjust-block-beginning): Use non-nil default for
function variables, so `add-function` can be used on them.
(hs-toggle-hiding): Make it work for mouse bindings as well.
(hs-minor-mode-map): Use it for the mouse binding.
(hs-grok-mode-type): Use bound-and-true-p.
(hs-life-goes-on): Use `declare` for the debug spec.
(hs-mouse-toggle-hiding): Make it an obsolete alias.
lisp/progmodes/hideshow.el