[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74661: [PATCH] Make time-stamp after-save-hooks buffer-local.
From: |
Collin Funk |
Subject: |
bug#74661: [PATCH] Make time-stamp after-save-hooks buffer-local. |
Date: |
Mon, 02 Dec 2024 19:27:43 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi,
I applied a similar patch like this to Gnulib a while ago.
Basically, the use of this in files:
# eval: (add-hook 'before-save-hook 'time-stamp)
modifies the global before-save-hook for Emacs, i.e. even after closing
the file. This caused some annoyance because it wouldn't work with this
in your Emacs init file:
(setq enable-local-variables :safe)
The solution to this is to use:
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
so it only enables it on the current buffer.
Collin
0001-Make-time-stamp-after-save-hooks-buffer-local.patch
Description: Text Data
- bug#74661: [PATCH] Make time-stamp after-save-hooks buffer-local.,
Collin Funk <=