emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] new single file package: mpdired.el


From: Manuel Giraud
Subject: Re: [ELPA] new single file package: mpdired.el
Date: Mon, 11 Mar 2024 09:44:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii <eliz@gnu.org> writes:

>> Cc: Manuel Giraud via "Emacs development discussions." <emacs-devel@gnu.org>
>> Date: Sun, 10 Mar 2024 19:03:56 +0100
>> From:  Manuel Giraud via "Emacs development discussions." 
>> <emacs-devel@gnu.org>
>> > I have tried to do so but for whatever reason this completely messes up
>> > the way I'm saving state in buffer local variables.  FWIW, I have tried
>> > with parent as nil and special-mode with the same result.
>> 
>> It seems to be because `define-derived-mode' calls
>> `kill-all-local-variables' (line 254 of derived.el).  Maybe this could
>> be optional.  WDYT?
>
> How can we NOT kill all local variables when we are turning on a major
> mode?

Yes.  Thinking about it, it seems that my usage of a major mode is wrong
here.  I thing it should be activated in only *one* place whatever I do
with the buffer content afterward.  Thanks.
-- 
Manuel Giraud



reply via email to

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