From b2b5d0ed76f069b995a3666e10d35429d7bdeb81 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 22 Jun 2024 16:52:18 +0200 Subject: [PATCH] Add before-save-hook to man page files * doc/man/ebrowse.1: * doc/man/emacs.1.in: * doc/man/emacsclient.1: * doc/man/etags.1: Add 'before-save-hook' that runs 'time-stamp' to local variables. (cherry picked from commit 3f3c08bcc7693c309f42bf6a2445bbfd733808a8) --- doc/man/emacs.1.in | 1 + doc/man/emacsclient.1 | 1 + doc/man/etags.1 | 1 + 3 files changed, 3 insertions(+) diff --git a/doc/man/emacs.1.in b/doc/man/emacs.1.in index d26bf944a34..b478b5196ee 100644 --- a/doc/man/emacs.1.in +++ b/doc/man/emacs.1.in @@ -682,6 +682,7 @@ in a translation approved by the Free Software Foundation. . .\" Local Variables: +.\" eval: (add-hook 'before-save-hook 'time-stamp nil t) .\" time-stamp-pattern: "3/.TH EMACS 1 \"%Y-%02m-%02d\" \"GNU Emacs @version@\" \"GNU\"$" .\" time-stamp-time-zone: "UTC0" .\" End: diff --git a/doc/man/emacsclient.1 b/doc/man/emacsclient.1 index 55c58a67323..f5c9918be85 100644 --- a/doc/man/emacsclient.1 +++ b/doc/man/emacsclient.1 @@ -193,6 +193,7 @@ specific to that system. This manual page is in the public domain. .\" Local Variables: +.\" eval: (add-hook 'before-save-hook 'time-stamp nil t) .\" time-stamp-pattern: "3/.TH EMACSCLIENT 1 \"%Y-%02m-%02d\" \"GNU Emacs\" \"GNU\"$" .\" time-stamp-time-zone: "UTC0" .\" End: diff --git a/doc/man/etags.1 b/doc/man/etags.1 index 55e38e08f2b..c567c51d7ef 100644 --- a/doc/man/etags.1 +++ b/doc/man/etags.1 @@ -307,6 +307,7 @@ modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. .\" Local Variables: +.\" eval: (add-hook 'before-save-hook 'time-stamp nil t) .\" time-stamp-pattern: "3/.TH ETAGS 1 \"%Y-%02m-%02d\" \"GNU Tools\" \"GNU\"$" .\" time-stamp-time-zone: "UTC0" .\" End: -- 2.39.2