emacs-devel
[Top][All Lists]
Advanced

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

Re: is the after-save-hook changed?


From: Uwe Brauer
Subject: Re: is the after-save-hook changed?
Date: Thu, 11 Jan 2024 07:55:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)


> If you want a local hook setting, use the LOCAL argument of add-hook.

Well 
this 
%%% eval: (add-hook (make-local-variable 'after-save-hook) 'backup-each-save)

Worked nicely in the past (and is still recommended in the documentation
of this package)

However I found out that now the syntax 

%%% eval: (add-hook (make-local-variable 'after-save-hook) 'backup-each-save 
nil t)

Makes it work again.

Maybe the doc-string of after-save-hook could say something about it?

-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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