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.
This commit is contained in:
parent
a5126f79a1
commit
5d620aefae
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue