]> git.eshelyaron.com Git - emacs.git/commit
which-function-mode: put hook function on after-change-major-mode-hook
authorAlan Mackenzie <acm@muc.de>
Wed, 20 May 2020 18:02:13 +0000 (18:02 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 20 May 2020 18:02:13 +0000 (18:02 +0000)
commitbd64571ef213a4279f897b7446e97ccd76fe4516
tree0bacba813451e3470f675883abc1525d0de14f41
parent525df72753acdd0221771a2a298842868f49f4b4
which-function-mode: put hook function on after-change-major-mode-hook

, rather than find-file-hook.  This keeps which-function-mode active should
the major mode be reinitialized.  Also accept a null result from
add-log-current-defun as definitive, should that function have run.  This
fixes bug #40714.

* lisp/progmodes/which-func.el (which-func-ff-hook): Put on
after-change-major-mode-hook.
(which-function): Enhance the logic to accept a null result from
add-log-current-defun.
lisp/progmodes/which-func.el