diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 0a63da4217d..6128be8f128 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1132,7 +1132,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 ffe5c072286..faf5d51d441 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: