From 6653dcfb08b1f66afc241d709cfb654c63be72c1 Mon Sep 17 00:00:00 2001 From: Stephen Gildea Date: Sat, 29 Mar 2025 16:48:58 -0700 Subject: [PATCH] time-stamp source commentary: point to manual section * lisp/time-stamp.el: Add an Info link in the commentary, now that the manual has more to say. * doc/emacs/files.texi (Time Stamps for One File): Expand one consistent example. (cherry picked from commit 5d620aefae267a12b4046606f85e6f2865d729da) --- doc/emacs/files.texi | 2 +- lisp/time-stamp.el | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 5aaaff18fc7..af6cabdab14 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1130,7 +1130,7 @@ To extend one of the previous examples: @group // Local variables: // eval: (add-hook 'before-save-hook 'time-stamp nil t) -// time-stamp-pattern: "year_published = \"%Y\"" +// time-stamp-pattern: "Published %Y in Boston" // End: @end group @end example diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 3d3886660d9..9b54f08280b 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el @@ -25,13 +25,14 @@ ;; A template in a file can be updated with a new time stamp when ;; you save the file. For example: -;; static char *ts = "sdmain.c Time-stamp: <2024-04-18 14:10:21 gildea>"; +;; static char *ts = "sdmain.c Time-stamp: <2025-03-28 21:31:56 gildea>"; ;; To use time-stamping, add this line to your init file: ;; (add-hook 'before-save-hook 'time-stamp) ;; Now any time-stamp templates in your files will be updated automatically. -;; See the documentation for the function `time-stamp' for details. +;; For details, see the documentation for function `time-stamp' +;; and the Info node `Time Stamps'. ;;; Code: -- 2.39.5