Variable: time-stamp-pattern
time-stamp-pattern is a variable defined in time-stamp.el.gz.
Value
nil
Documentation
Shorthand variable for time-stamp location and format values.
This string has four parts, each of which is optional.
These four parts override time-stamp-line-limit, time-stamp-start,
time-stamp-format and time-stamp-end, respectively. See the
documentation for each of these variables for details.
The first part is a number followed by a slash; the number sets the number
of lines at the beginning (negative counts from end) of the file searched
for the time stamp. The number and the slash may be omitted to use the
value of time-stamp-line-limit as the number.
The second part is a regexp identifying the pattern preceding the time stamp.
This part may be omitted to use the value of time-stamp-start.
The third part specifies the format of the time stamp inserted. Specify
this part as "%%" to use the value of time-stamp-format.
The fourth part is a regexp identifying the pattern following the time stamp.
This part may be omitted to use the value of time-stamp-end.
The pattern does not need to match the entire line of the time stamp. The pattern will update time stamp information on multiple lines if the pattern includes newlines, which can be written as "\\n".
These variables are best changed with file-local variables.
If you were to change time-stamp-pattern, time-stamp-line-limit,
time-stamp-start, or time-stamp-end in your init file, you
would be incompatible with other people's files.
Examples:
;; time-stamp-pattern: "-10/"
(sets only time-stamp-line-limit)
// time-stamp-pattern: "-9/^Last modified: %%$"
(sets time-stamp-line-limit, time-stamp-start and time-stamp-end)
@c time-stamp-pattern: "@set Time-stamp: %B %-d, %Y$"
(sets time-stamp-start, time-stamp-format and time-stamp-end)
%% time-stamp-pattern: "newcommand{\\\\\\\\timestamp}{%%}"
(sets time-stamp-start and time-stamp-end)
// time-stamp-pattern: "10/Author %L\\nRevised %-d %b %Y$"
(sets all four variables and updates text on two lines)
See Info node (emacs)Time Stamp Customization for more discussion and more in-depth examples.
See also time-stamp-count and time-stamp-inserts-lines.
Probably introduced at or before Emacs version 20.3.
Source Code
;; Defined in /usr/src/emacs/lisp/time-stamp.el.gz
;;;###autoload(put 'time-stamp-count 'safe-local-variable (lambda (c) (and (integerp c) (< c 100))))
(defvar time-stamp-pattern nil ;Do not change!
"Shorthand variable for `time-stamp' location and format values.
This string has four parts, each of which is optional.
These four parts override `time-stamp-line-limit', `time-stamp-start',
`time-stamp-format' and `time-stamp-end', respectively. See the
documentation for each of these variables for details.
The first part is a number followed by a slash; the number sets the number
of lines at the beginning (negative counts from end) of the file searched
for the time stamp. The number and the slash may be omitted to use the
value of `time-stamp-line-limit' as the number.
The second part is a regexp identifying the pattern preceding the time stamp.
This part may be omitted to use the value of `time-stamp-start'.
The third part specifies the format of the time stamp inserted. Specify
this part as \"%%\" to use the value of `time-stamp-format'.
The fourth part is a regexp identifying the pattern following the time stamp.
This part may be omitted to use the value of `time-stamp-end'.
The pattern does not need to match the entire line of the time stamp.
The pattern will update time stamp information on multiple lines if the
pattern includes newlines, which can be written as \"\\n\".
These variables are best changed with file-local variables.
If you were to change `time-stamp-pattern', `time-stamp-line-limit',
`time-stamp-start', or `time-stamp-end' in your init file, you
would be incompatible with other people's files.
Examples:
;; time-stamp-pattern: \"-10/\"
(sets only `time-stamp-line-limit')
// time-stamp-pattern: \"-9/^Last modified: %%$\"
(sets `time-stamp-line-limit', `time-stamp-start' and `time-stamp-end')
@c time-stamp-pattern: \"@set Time-stamp: %B %-d, %Y$\"
(sets `time-stamp-start', `time-stamp-format' and `time-stamp-end')
%% time-stamp-pattern: \"newcommand{\\\\\\\\timestamp}{%%}\"
(sets `time-stamp-start' and `time-stamp-end')
// time-stamp-pattern: \"10/Author %L\\nRevised %-d %b %Y$\"
(sets all four variables and updates text on two lines)
See Info node `Time Stamp Customization' for more discussion and more
in-depth examples.
See also `time-stamp-count' and `time-stamp-inserts-lines'.")