]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/which-func.el: Improve disabling the mode
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 30 Nov 2015 15:52:12 +0000 (10:52 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 30 Nov 2015 15:52:12 +0000 (10:52 -0500)
commitcbfb129555482c582fe875766680bf8179c0588c
treef2337014213c5b865250676ff6033d90e6c6d0d2
parentc77b816bc3d8fc242b95c04859803ffff5bb8210
* lisp/progmodes/which-func.el: Improve disabling the mode

Use lexical-binding.
(which-func-modes, which-func-non-auto-modes, which-func-maxout)
(which-func, which-func-format): Remove redundant :group arg.
(which-func-try-to-enable): New function.
(which-func-ff-hook, which-function-mode): Use it.
(mode-line-misc-info): Add ourselves here instead of in bindings.el.
* lisp/bindings.el (mode-line-misc-info): Remove which-func-mode entry.
lisp/bindings.el
lisp/progmodes/which-func.el