Variable: time-stamp-pattern

time-stamp-pattern is a variable defined in time-stamp.el.gz.

Value

nil

Documentation

Convenience variable setting all time-stamp location and format values.

This string has four parts, each of which is optional. These four parts set time-stamp-line-limit, time-stamp-start, time-stamp-format, and time-stamp-end. 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 normal value.

The second part is a regexp identifying the pattern preceding the time stamp. This part may be omitted to use the normal pattern.

The third part specifies the format of the time stamp inserted. See the documentation for time-stamp-format for details. Specify this part as "%%" to use the normal format.

The fourth part is a regexp identifying the pattern following the time stamp. This part may be omitted to use the normal pattern.

The pattern does not need to match the entire line of the time stamp.

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.

See also time-stamp-count and time-stamp-inserts-lines.

Examples:

"-10/" (sets only time-stamp-line-limit)

"-9/^Last modified: %%$" (sets time-stamp-line-limit,
time-stamp-start and time-stamp-end)

"@set Time-stamp: %:B %1d, %Y$" (sets time-stamp-start,
time-stamp-format and time-stamp-end)

"newcommand{\\\\\\\\timestamp}{%%}" (sets time-stamp-start
and time-stamp-end)

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/time-stamp.el.gz
;;;###autoload(put 'time-stamp-count 'safe-local-variable 'integerp)


(defvar time-stamp-pattern nil		;Do not change!
  "Convenience variable setting all `time-stamp' location and format values.
This string has four parts, each of which is optional.
These four parts set `time-stamp-line-limit', `time-stamp-start',
`time-stamp-format', and `time-stamp-end'.  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
normal value.

The second part is a regexp identifying the pattern preceding the time stamp.
This part may be omitted to use the normal pattern.

The third part specifies the format of the time stamp inserted.  See
the documentation for `time-stamp-format' for details.  Specify this
part as \"%%\" to use the normal format.

The fourth part is a regexp identifying the pattern following the time stamp.
This part may be omitted to use the normal pattern.

The pattern does not need to match the entire line of the time stamp.

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.

See also `time-stamp-count' and `time-stamp-inserts-lines'.

Examples:

\"-10/\" (sets only `time-stamp-line-limit')

\"-9/^Last modified: %%$\" (sets `time-stamp-line-limit',
`time-stamp-start' and `time-stamp-end')

\"@set Time-stamp: %:B %1d, %Y$\" (sets `time-stamp-start',
`time-stamp-format' and `time-stamp-end')

\"newcommand{\\\\\\\\timestamp}{%%}\" (sets `time-stamp-start'
and `time-stamp-end')")