Server IP : 111.118.215.189 / Your IP : 18.191.89.16 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:32 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/time-stamp.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\304\306&\210\307\310\311\312\313\314\304\301\315\316& \210\307\317\320\321\313\322\304\301&\210\307\323\320\324\313\322\304\301\315\325& \210\307\326\327\330\313\331\304\301&\210\307\332\302\333\313\334\304\301\315\316& \207" [custom-declare-group time-stamp nil "Maintain last change time stamps in files edited by Emacs." :group data extensions custom-declare-variable time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %u" "Format of the string inserted by \\[time-stamp].\nThe value may be a string or a list. Lists are supported only for\nbackward compatibility; see variable `time-stamp-old-format-warn'.\n\nA string is used verbatim except for character sequences beginning\nwith %, as follows. The values of non-numeric formatted items depend\non the locale setting recorded in `system-time-locale' and\n`locale-coding-system'. The examples here are for the default\n(`C') locale.\n\n%:a weekday name: `Monday'. %#A gives uppercase: `MONDAY'\n%3a abbreviated weekday: `Mon'. %3A gives uppercase: `MON'\n%:b month name: `January'. %#B gives uppercase: `JANUARY'\n%3b abbreviated month: `Jan'. %3B gives uppercase: `JAN'\n%02d day of month\n%02H 24-hour clock hour\n%02I 12-hour clock hour\n%02m month number\n%02M minute\n%#p `am' or `pm'. %P gives uppercase: `AM' or `PM'\n%02S seconds\n%w day number of week, Sunday is 0\n%02y 2-digit year: `03' %:y 4-digit year: `2003'\n%z time zone name: `est'. %Z gives uppercase: `EST'\n\nNon-date items:\n%% a literal percent character: `%'\n%f file name without directory %F gives absolute pathname\n%s system name\n%u user's login name %U user's full name\n%h mail host name\n\nDecimal digits between the % and the type character specify the\nfield width. Strings are truncated on the right; years on the left.\nA leading zero in the field width zero-fills a number.\n\nFor example, to get the format used by the `date' command,\nuse \"%3a %3b %2d %02H:%02M:%02S %Z %:y\".\n\nIn the future these formats will be aligned more with `format-time-string'.\nBecause of this transition, the default padding for numeric formats will\nchange in a future version. Therefore either a padding width should be\nspecified, or the : modifier should be used to explicitly request the\nhistorical default." :type string :version "20.1" time-stamp-active t "Non-nil to enable time-stamping of buffers by \\[time-stamp].\nCan be toggled by \\[time-stamp-toggle-active].\nSee also the variable `time-stamp-warn-inactive'." boolean time-stamp-warn-inactive "Have \\[time-stamp] warn if a buffer did not get time-stamped.\nIf non-nil, a warning is displayed if `time-stamp-active' has\ndeactivated time stamping and the buffer contains a template that\notherwise would have been updated." "19.29" time-stamp-old-format-warn 'ask "Action if `time-stamp-format' is an old-style list.\nIf `error', the format is not used. If `ask', the user is queried about\nusing the time-stamp-format. If `warn', a warning is displayed.\nIf nil, no notification is given." (choice (const :tag "Don't use the format" error) (const ask) (const warn) (const :tag "No notification" nil)) time-stamp-time-zone "If non-nil, a string naming the timezone to be used by \\[time-stamp].\nFormat is the same as that used by the environment variable TZ on your system." (choice (const nil) string)] 10) #@666 Lines of a file searched; positive counts from start, negative from end. The patterns `time-stamp-start' and `time-stamp-end' must be found in the first (last) `time-stamp-line-limit' lines of the file for the file to be time-stamped by \[time-stamp]. A value of 0 searches the entire buffer (use with care). This value can also be set with the variable `time-stamp-pattern'. Do not change `time-stamp-line-limit', `time-stamp-start', `time-stamp-end', or `time-stamp-pattern' 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 (#$ . 3934)) #@488 Regexp after which the time stamp is written by \[time-stamp]. See also the variables `time-stamp-end' and `time-stamp-line-limit'. This value can also be set with the variable `time-stamp-pattern'. Do not change `time-stamp-line-limit', `time-stamp-start', `time-stamp-end', or `time-stamp-pattern' 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:[ ]+\\\\?[\"<]+" (#$ . 4651)) #@909 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', then writes the time stamp specified by `time-stamp-format' between them. This value can also be set with the variable `time-stamp-pattern'. The end text normally starts on the same line as the start text ends, but if there are any newlines in `time-stamp-format', the same number of newlines must separate the start and end. \[time-stamp] tries to not change the number of lines in the buffer. `time-stamp-inserts-lines' controls this behavior. Do not change `time-stamp-start', `time-stamp-end', `time-stamp-pattern', or `time-stamp-inserts-lines' 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 "\\\\?[\">]" (#$ . 5213)) #@740 Whether \[time-stamp] can change the number of lines in a file. If nil, \[time-stamp] skips as many lines as there are newlines in `time-stamp-format' before looking for the `time-stamp-end' pattern, thus it tries not to change the number of lines in the buffer. If non-nil, \[time-stamp] starts looking for the end pattern immediately after the start pattern. This behavior can cause unexpected changes in the buffer if used carelessly, but it is useful for generating repeated time stamps. Do not change `time-stamp-end' or `time-stamp-inserts-lines' 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-inserts-lines nil (#$ . 6177)) #@328 How many templates \[time-stamp] will look for in a buffer. The same time stamp will be written in each case. Do not change `time-stamp-count' for yourself or you will be incompatible with other people's files! If you must change it for some application, do so in the local variables section of the time-stamped file itself. (defvar time-stamp-count 1 (#$ . 6973)) #@1378 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. Examples: "-10/" "-9/^Last modified: %%$" "@set Time-stamp: %:b %:d, %:y$" "newcommand{\\\\timestamp}{%%}" Do not change `time-stamp-pattern' `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 only in the local variables section of the time-stamped file itself. (defvar time-stamp-pattern nil (#$ . 7348)) #@883 Update the time stamp string(s) 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 init file: (add-hook 'before-save-hook 'time-stamp) or customize `before-save-hook' through Custom. 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: <2001-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-pattern' or `time-stamp-format'. The variables `time-stamp-pattern', `time-stamp-line-limit', `time-stamp-start', `time-stamp-end', `time-stamp-count', and `time-stamp-inserts-lines' control finding the template. (defalias 'time-stamp #[nil " \n\f\306\307\310\211 !;\203b \311\312!\"\210\313\224\2034 \314\315\313!\"! \316\224\203@ \315\316!\"\317\224\203V \315\317!\"\320\230\204V \315\317!\"\321\224\203b \315\321!\" \250\204s \322 \323\324!\210\325\307!\210\250\204\207 \307\323\326!\210\325\307!\210\202\221 \307W\203\221 \307;\203\261 \306\"\311\327\"#\203\260 T\306\225\"\202\232 )\306\"\311\327\"#\203\312 T\306\225\"\202\264 )\212\214~\210 \306V\203\345 e\211b\210 y\210`\202 \306W\203\373 d\211b\210 y\210`\202 ed*\203. W\203.\306V\203.\330 &S\202. \310\207" [time-stamp-line-limit time-stamp-start time-stamp-format time-stamp-end time-stamp-count search-limit 0 1 nil string-match "\\`\\(\\(-?[0-9]+\\)/\\)?\\([^%]+\\)?\\(\\(%[-.,:@+_ #^()0-9]*[A-Za-z%][^%]*\\)*%[-.,:@+_ #^()0-9]*[A-Za-z%]\\)?\\([^%]+\\)?\\'" 2 string-to-number match-string 3 4 "%%" 6 8 message "time-stamp-line-limit is not an integer" sit-for "time-stamp-count is not an integer" "\n" time-stamp-once start end-lines format-lines ts-count ts-end ts-format ts-start line-limit time-stamp-pattern nl-start] 9 (#$ . 8776) nil]) #@142 Update one time stamp. Internal routine called by \[time-stamp]. Returns the end point, which is where `time-stamp' begins the next search. (defalias 'time-stamp-once #[(start search-limit ts-start ts-end ts-format format-lines end-lines) "\306\211\211\211\212\214~\210\fb W\203b \n\204b \307 \310#\203b `\204+ y\210\f`]y\311U\203\f n\203>