emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40714: closed (Reinitialising the major mode disables which-function


From: GNU bug Tracking System
Subject: bug#40714: closed (Reinitialising the major mode disables which-function-mode.)
Date: Wed, 20 May 2020 18:09:02 +0000

Your message dated Wed, 20 May 2020 18:08:42 +0000
with message-id <20200520180842.GA19724@ACM>
and subject line Re: bug#40714: Acknowledgement (Reinitialising the major mode 
disables which-function-mode.)
has caused the debbugs.gnu.org bug report #40714,
regarding Reinitialising the major mode disables which-function-mode.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
40714: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40714
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Reinitialising the major mode disables which-function-mode. Date: Sun, 19 Apr 2020 11:12:33 +0000
Hello, Emacs.

In a typical buffer, say an emacs-lisp-mode buffer, with
which-function-mode enabled and working, do

    M-x emacs-lisp-mode

.  which-function-mode is no longer working.

#########################################################################

The cause of this is that the enablement of w-f-m is stored in a buffer
local variable which-func-mode.  This local variable gets killed on
reinitialising the major mode.  There is nothing to set it to non-nil
again.

When visiting a file, which-func-mode gets set in a file-find-hook
function called which-func-ff-hook.

Suggested fix: Move which-func-ff-hook to after-change-major-mode-hook
(renaming it, of course).

-- 
Alan Mackenzie (Nuremberg, Germany).



--- End Message ---
--- Begin Message --- Subject: Re: bug#40714: Acknowledgement (Reinitialising the major mode disables which-function-mode.) Date: Wed, 20 May 2020 18:08:42 +0000
Bug fixed in master.

-- 
Alan Mackenzie (Nuremberg, Germany).


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]