[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is the after-save-hook changed?
From: |
Uwe Brauer |
Subject: |
is the after-save-hook changed? |
Date: |
Wed, 10 Jan 2024 21:30:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hi
I have used backup-each-save some years ago quite extensively.
Now I wanted, at least for some files, to use it again.
So I again started to use
(require 'backup-each-save)
and locally in LaTeX file
--8<---------------cut here---------------start------------->8---
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% vc-make-backup-files: t
%%% eval: (add-hook (make-local-variable 'after-save-hook) 'backup-each-save)
%%% End:
--8<---------------cut here---------------end--------------->8---
However describe variable after-save-hook shows me in this file
,----
|
| after-save-hook is a variable defined in ‘files.el’.
|
| Its value is (diff-hl-update t)
| Original value was nil
| Local in buffer test.tex; global value is (backup-each-save)
`----
So who is the culprit here?
Thanks and regards
Uwe Brauer
- is the after-save-hook changed?,
Uwe Brauer <=