;ELC   
;;; Compiled by rms@psilocin.ai.mit.edu on Tue Aug 11 11:01:23 1998
;;; from file /gd/gnu/emacs/lisp/time-stamp.el
;;; in Emacs version 20.2.98.3
;;; with bytecomp version 2.48
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
	 (< (aref emacs-version (1- (length emacs-version))) ?A)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`time-stamp.el' was compiled for Emacs 19.29 or later"))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(custom-declare-group 'time-stamp nil "Maintain last change time stamps in files edited by Emacs." :group 'data :group 'extensions)
#@1600 *Format of the string inserted by \[time-stamp].
The value may be a string or a list.  Lists are supported only for
backward compatibility; see variable `time-stamp-old-format-warn'.

A string is used verbatim except for character sequences beginning with %:

%:a  weekday name: `Monday'.		%#A gives uppercase: `MONDAY'
%3a  abbreviated weekday: `Mon'.	%3A gives uppercase: `MON'
%:b  month name: `January'.		%#B gives uppercase: `JANUARY'
%3b  abbreviated month: `Jan'.		%3B gives uppercase: `JAN'
%02d day of month
%02H 24-hour clock hour
%02I 12-hour clock hour
%02m month number
%02M minute
%#p  `am' or `pm'.			%P  gives uppercase: `AM' or `PM'
%02S seconds
%w   day number of week, Sunday is 0
%02y 2-digit year: `97'			%:y 4-digit year: `1997'
%z   time zone name: `est'.		%Z  gives uppercase: `EST'

Non-date items:
%%   a literal percent character: `%'
%f   file name without directory	%F  gives absolute pathname
%s   system name
%u   user's login name
%U   user's full name
%h   mail host name

Decimal digits between the % and the type character specify the
field width.  Strings are truncated on the right; years on the left.
A leading zero causes numbers to be zero-filled.

For example, to get the format used by the `date' command,
use "%3a %3b %2d %02H:%02M:%02S %Z %:y".

In the future these formats will be aligned more with format-time-string.
Because of this transition, the default padding for numeric formats will
change in a future version.  Therefore either a padding width should be
specified, or the : modifier should be used to explicitly request the
historical default.
(custom-declare-variable 'time-stamp-format '"%:y-%02m-%02d %02H:%02M:%02S %u" '(#$ . -742) :type 'string :group 'time-stamp)
#@160 *Non-nil to enable time-stamping of buffers by \[time-stamp].
Can be toggled by \[time-stamp-toggle-active].
See also the variable `time-stamp-warn-inactive'.
(custom-declare-variable 'time-stamp-active 't '(#$ . -2474) :type 'boolean :group 'time-stamp)
#@211 Non-nil to have \[time-stamp] warn if a buffer did not get time-stamped.
A warning is printed if `time-stamp-active' is nil and the buffer contains
a time stamp template that would otherwise have been updated.
(custom-declare-variable 'time-stamp-warn-inactive 't '(#$ . 2736) :type 'boolean :group 'time-stamp)
#@233 Action to take if `time-stamp-format' is an old-style list.
If `error', the format is not used.  If `ask', the user is queried about
using the time-stamp-format.  If `warn', a warning is displayed.
If nil, no notification is given.
(custom-declare-variable 'time-stamp-old-format-warn ''ask '(#$ . 3055) :type '(choice (const :tag "No notification" nil) (const :tag "Don't use the format" error) (const ask) (const warn)) :group 'time-stamp)
#@150 If non-nil, a string naming the timezone to be used by \[time-stamp].
Format is the same as that used by the environment variable TZ on your system.
(custom-declare-variable 'time-stamp-time-zone 'nil '(#$ . 3504) :type '(choice (const nil) string) :group 'time-stamp)
#@525 Lines of a file searched; positive counts from start, negative from end.
The patterns `time-stamp-start' and `time-stamp-end' must be found on one
of the first (last) `time-stamp-line-limit' lines of the file for the
file to be time-stamped by \[time-stamp].

Do not change `time-stamp-line-limit', `time-stamp-start', or
`time-stamp-end' for yourself or you will be incompatible
with other people's files!  If you must change them for some application,
do so in the local variables section of the time-stamped file itself.
(defvar time-stamp-line-limit 8 (#$ . 3780))
#@398 Regexp after which the time stamp is written by \[time-stamp].
See also the variables `time-stamp-end' and `time-stamp-line-limit'.

Do not change `time-stamp-line-limit', `time-stamp-start', or
`time-stamp-end' for yourself or you will be incompatible
with other people's files!  If you must change them for some application,
do so in the local variables section of the time-stamped file itself.
(defvar time-stamp-start "Time-stamp:[ 	]+\\\\?[\"<]+" (#$ . 4356))
#@525 Regexp marking the text after the time stamp.
\[time-stamp] deletes the text between the first match of `time-stamp-start'
and the following match of `time-stamp-end' on the same line,
then writes the time stamp specified by `time-stamp-format' between them.

Do not change `time-stamp-line-limit', `time-stamp-start', or
`time-stamp-end' for yourself or you will be incompatible
with other people's files!  If you must change them for some application,
do so in the local variables section of the time-stamped file itself.
(defvar time-stamp-end "\\\\?[\">]" (#$ . 4828))
#@1284 Convenience variable setting all time-stamp location and format variables.
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.

As an example, the default behavior can be specified something like this:
"8/Time-stamp: [\"<]%:y-%02m-%02d %02H:%02M:%02S %u[\">]"

Do not change `time-stamp-pattern' for yourself or you will be incompatible
with other people's files!  Set it only in the local variables section
of the time-stamped file itself.
(defvar time-stamp-pattern "%%" (#$ . 5409))
#@739 Update the time stamp string in the buffer.
A template in a file can be automatically updated with a new time stamp
every time you save the file.  Add this line to your .emacs file:
    (add-hook 'write-file-hooks 'time-stamp)
Normally the template must appear in the first 8 lines of a file and
look like one of the following:
      Time-stamp: <>
      Time-stamp: " "
The time stamp is written between the brackets or quotes:
      Time-stamp: <1998-02-18 10:20:51 gildea>
The time stamp is updated only if the variable `time-stamp-active' is non-nil.
The format of the time stamp is set by the variable `time-stamp-format'.
The variables `time-stamp-line-limit', `time-stamp-start',
and `time-stamp-end' control finding the template.
(defalias 'time-stamp #[nil "\306\211\211\211	\n !\"#$%&;\203\\ \307\310&\"\210\311\224\2030 \312\313\311&\"!!\314\224\203< \313\314&\" \315\224\203Q \313\315&\"\316\230\204Q \313\315&\"\317\224\203\\ \313\317&\"!\250\204m \320!\321\322!\210\323\324!\210\212\214~\210!\325V\203\210 e\211$b\210!y\210`\"\202\225 d\211\"b\210!y\210`$$b\210`\"W\203\315 #\204\315 \326 \"\327#\203\315 `$\306\210`'$b\210\326\f'\327#\203\311 \325\224#)\202\231 *#\2034(\204\350 )\2034\321\330!\210\323\324!\210\2024 ;\203\363 \f;\204\376 \321\331!\210\323\324!\210\2024\332!\211*;\2033\212\214~\210$#|\210$b\210\333*!\210`#$b\210\334\335#\336#\2032\337$#\"\210*).\306\207" [time-stamp-line-limit time-stamp-start time-stamp-format time-stamp-end ts-end ts-format nil string-match "\\`\\(\\(-?[0-9]+\\)/\\)?\\([^%]+\\)?\\(\\(.\\|\n\\)*%[-.,:@+_ #^()0-9]*[A-Za-z%]\\)?\\([^%]+\\)?\\'" 2 string-to-int match-string 3 4 "%%" 6 8 message "time-stamp-line-limit is not an integer" sit-for 1 0 re-search-forward move "Warning: time-stamp-active is off; did not time-stamp buffer." "time-stamp-start or time-stamp-end is not a string" time-stamp-string insert-and-inherit search-forward "	" t untabify ts-start line-limit search-limit end start case-fold-search time-stamp-pattern line-end time-stamp-active time-stamp-warn-inactive new-time-stamp] 9 (#$ . 6744) nil])
#@141 Toggle `time-stamp-active', setting whether \[time-stamp] updates a buffer.
With arg, turn time stamping on if and only if arg is positive.
(defalias 'time-stamp-toggle-active #[(&optional arg) "\204	 	?\202 \302!\303V\304\305	\203 \306\202 \307\"\207" [arg time-stamp-active prefix-numeric-value 0 message "time-stamp is now %s." "active" "off"] 3 (#$ . 8891) "P"])
#@62 String to use when the buffer is not associated with a file.
(defconst time-stamp-no-file "(no file)" (#$ . 9270))
(defalias 'time-stamp-string-preprocess #[(format &optional time) "G\306\307\211\310\307\211\211\211\211\306@ABCDEDEW\203\370DHCAC\311=\203\346\307\307\307\310@DT\211DEW\203P DH\202Q \306\211C\312=\204C\313=\204C\314=\204C\315=\204C\316=\204C\317=\204C\320=\204C\321=\204C\322=\204C\323=\204C\324=\203\255 B\325=\204\255 	T\211\204C\326=\203\310 B\325=\204\310 	\306V\203\310 	S\211\202\323 	\306V\203\326 DEW\204\327CX\2036\330CY\2036DFDT\211DEW\203\373 DH\202\374 \306C\327CX\203\f\330CY\204\350 FDO@DSD)CBC\314=\203*\331\202= C\322=\203= \331\202= C\311=\203A\332\202\203C\333=\203{\203T\334\335G\"\202\203\f\204d@\310\230\203d\336\337\340\"\210\f\203s@\310\230\204s\310\202\203\334\341G\"\202\203C\342=\203\246\f\203\216\334\341G\"\202\203\204\236@\310\230\203\236\336\341\335\"\210\334\335G\"\202\203C\343=\203\340\203\271\334\344G\"\202\203\f\204\311@\310\230\203\311\336\345\346\"\210\f\203\330@\310\230\204\330\310\202\203\334\347G\"\202\203C\350=\203\f\203\363\334\347G\"\202\203\204@\310\230\203\336\347\344\"\210\334\344G\"\202\203C\351=\203\352C\f@G$\202\203C\353=\2031\352C\f@G$\202\203C\354=\203D\352C\f@G$\202\203C\355=\203W\352C\f@G$\202\203C\356=\203j\352C\f@G$\202\203C\357=\203\202\204z\336\360\361\"\210\334\361G\"\202\203C\362=\203\221\334\360G\"\202\203C\363=\203\244\352C\f@G$\202\203C\364=\203\263\334\365G\"\202\203C\366=\203\324\f\204\312@\310\230\203\312\336\367\370\"\210\371\334\372G\"!\202\203C\373=\203\345\371\334\372G\"!\202\203C\374=\203\374\203\364\310\202\203\334\375G\"\202\203C\376=\203\203\334\375G\"\202\203\334\377G\"\202\203C\201M =\2033H\203.\201N H!\202\203I\202\203C\201O =\203FH\206\203I\202\203C\201P =\203V\201Q  \202\203C\201R =\203f\201S  \202\203C\201T =\203v\201U  \202\203C\201V =\205\203\201W  @\310\230\203\217\202\354\300\211\201X @\247\203\237\351\202\242\201P #\206\250\310\"\211JG\371@!K\211LKV\203\340;\203\312J\306KO\202\342C\366=\203\333JK[\307O\202\342J\202\342J+\202\354\201Y C!PADT\211D\202 A.\207" [format paren-level require-padding change-case alt-form field-result 0 nil "" 37 46 44 58 64 45 43 95 32 35 94 40 92 41 48 57 t "%" 97 format-time-string "%#A" time-stamp-conv-warn "%a" "%:a" "%A" 65 98 "%#B" "%b" "%:b" "%B" 66 100 time-stamp-do-number 72 73 109 77 112 "%p" "%#p" 80 83 119 "%w" 121 "%y" "%:y" string-to-int "%Y" 89 122 "%#Z" 90 "%Z" field-width result prev-char cur-char ind fmt-len field-index time buffer-file-name time-stamp-no-file padded-result desired-length initial-length 102 file-name-nondirectory 70 115 system-name 117 user-login-name 85 user-full-name 104 time-stamp-mail-host-name "%%%s%c" char-to-string] 12])
(defalias 'time-stamp-do-number #[(format-char alt-form field-width time) "\305\306!P\n\204 \307\230\203 \310	\311\312\"\"\210\n\203& \307\230\204& \307\202, \313\314	\f\"!)\207" [format-char format-string alt-form field-width time "%" char-to-string "" time-stamp-conv-warn format "%%:%c" string-to-int format-time-string] 5])
#@420 Non-nil to warn about soon-to-be-unsupported forms in time-stamp-format.
In would be a bad idea to disable these warnings!
You really need to update your files instead.

The new formats will work with old versions of Emacs.
New formats are being recommended now to allow time-stamp-format
to change in the future to be compatible with format-time-string.
The new forms being recommended now will continue to work then.
(defvar time-stamp-conversion-warn t (#$ . 12634))
(defalias 'time-stamp-conv-warn #[(old-form new-form) "\205# \212\303\304!q\210db\210o\203 \305\306\307\261\210\310	\311\n\312\261\210)\313\304!\207" [time-stamp-conversion-warn old-form new-form get-buffer-create "*Time-stamp-compatibility*" "The formats recognized in time-stamp-format will change in a future release\n" "to be compatible with the new, expanded format-time-string function.\n\n" "The following obsolescent time-stamp-format construct(s) were found:\n\n" "\"" "\" -- use " "\n" display-buffer] 5])
#@81 Generate the new string to be inserted by \[time-stamp].
Optionally use FORMAT.
(defalias 'time-stamp-string #[(&optional ts-format) "\204 	;\203( \n;\203\" \305\306!\307\216\310\306\n\"\210\311\312!!*\207\311\312!!\207\f\313=\204: \f\314=\203D \315\316!\204D \317\320!\210\321\322!\210\323\207\f\324=\203R \317\325!\210\321\322!\210\326\327\"\207" [ts-format time-stamp-format time-stamp-time-zone real-time-zone time-stamp-old-format-warn getenv "TZ" ((setenv "TZ" real-time-zone)) setenv format-time-string time-stamp-string-preprocess error ask y-or-n-p "Use non-string time-stamp-format? " message "Warning: no time-stamp: time-stamp-format not a string" sit-for 1 nil warn "Obsolescent time-stamp-format type; should be string" time-stamp-fconcat " "] 3 (#$ . 13630)])
#@62 String to use when the buffer is not associated with a file.
(defconst time-stamp-no-file "(no file)" (#$ . 14419))
#@172 Return the name of the host where the user receives mail.
This is the value of `mail-host-address' if bound and a string,
otherwise the value of the function system-name.
(defalias 'time-stamp-mail-host-name #[nil "\301\300!\203 ;\203 \206 \302 \207" [mail-host-address boundp system-name] 2 (#$ . 14542)])
#@305 Similar to (mapconcat 'funcall LIST SEP) but LIST allows literals.
If an element of LIST is a symbol, it is funcalled to get the string to use;
the separator SEP is used between two strings obtained by funcalling a
symbol.  Otherwise the element itself is inserted; no separator is used
around literals.
(defalias 'time-stamp-fconcat #[(list sep) "\304\305\n\203/ \n@9\203! \203 	P	\n@ P\306\202( 	\n@P\305\nA\211\204 	*\207" [insert-sep-p return-string list sep "" nil t] 3 (#$ . 14861)])
#@63 Return the current date as a string in "Month DD, YYYY" form.
(defalias 'time-stamp-month-dd-yyyy #[nil "\300\301!\207" [format-time-string "%B %e, %Y"] 2 (#$ . 15369)])
#@59 Return the current date as a string in "DD/MM/YYYY" form.
(defalias 'time-stamp-dd/mm/yyyy #[nil "\300\301!\207" [format-time-string "%d/%m/%Y"] 2 (#$ . 15545)])
#@125 Return the current date as a string in "Mon DD YYYY" form.
The first character of DD is space if the value is less than 10.
(defalias 'time-stamp-mon-dd-yyyy #[nil "\300\301!\207" [format-time-string "%b %d %Y"] 2 (#$ . 15714)])
#@58 Return the current date as a string in "DD Mon YY" form.
(defalias 'time-stamp-dd-mon-yy #[nil "\300\301!\207" [format-time-string "%d %b %y"] 2 (#$ . 15949)])
#@57 Return the current date as a string in "YY/MM/DD" form.
(defalias 'time-stamp-yy/mm/dd #[nil "\300\301!\207" [format-time-string "%y/%m/%d"] 2 (#$ . 16115)])
#@59 Return the current date as a string in "YYYY/MM/DD" form.
(defalias 'time-stamp-yyyy/mm/dd #[nil "\300\301!\207" [format-time-string "%Y/%m/%d"] 2 (#$ . 16279)])
#@59 Return the current date as a string in "YYYY-MM-DD" form.
(defalias 'time-stamp-yyyy-mm-dd #[nil "\300\301!\207" [format-time-string "%Y-%m-%d"] 2 (#$ . 16447)])
#@55 Return the current date as a string in "YYMMDD" form.
(defalias 'time-stamp-yymmdd #[nil "\300\301!\207" [format-time-string "%y%m%d"] 2 (#$ . 16615)])
#@57 Return the current time as a string in "HH:MM:SS" form.
(defalias 'time-stamp-hh:mm:ss #[nil "\300\301!\207" [format-time-string "%T"] 2 (#$ . 16773)])
#@53 Return the current time as a string in "HHMM" form.
(defalias 'time-stamp-hhmm #[nil "\300\301!\207" [format-time-string "%H%M"] 2 (#$ . 16931)])
(provide 'time-stamp)
