]> git.eshelyaron.com Git - emacs.git/commitdiff
time-stamp source commentary: point to manual section
authorStephen Gildea <stepheng+emacs@gildea.com>
Sat, 29 Mar 2025 23:48:58 +0000 (16:48 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:54:12 +0000 (10:54 +0200)
* 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
lisp/time-stamp.el

index 5aaaff18fc736ad6c9679beec47f61e4ba829d59..af6cabdab14b8f745aa88f995f4e7820b9a3e885 100644 (file)
@@ -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
index 3d3886660d9eaa63378e3f9f6527ea7f3c7ca467..9b54f08280b7bca02c37e051e2894306e865ae9f 100644 (file)
 
 ;; 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: