HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* lisp/textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
[bpt/emacs.git]
/
lisp
/
time-stamp.el
diff --git
a/lisp/time-stamp.el
b/lisp/time-stamp.el
index
fb5d430
..
8fa5d99
100644
(file)
--- a/
lisp/time-stamp.el
+++ b/
lisp/time-stamp.el
@@
-1,7
+1,7
@@
;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs
;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs
-;; Copyright (C) 1989, 1993
, 1994, 1995, 1997, 2000, 2001, 2002, 2003,
-;;
2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
Foundation, Inc.
+;; Copyright (C) 1989, 1993
-1995, 1997, 2000-2013 Free Software
+;; Foundation, Inc.
;; This file is part of GNU Emacs.
;; This file is part of GNU Emacs.
@@
-29,7
+29,7
@@
;; static char *ts = "sdmain.c Time-stamp: <2001-08-13 10:20:51 gildea>";
;; See the top of `time-stamp.el' for another example.
;; static char *ts = "sdmain.c Time-stamp: <2001-08-13 10:20:51 gildea>";
;; See the top of `time-stamp.el' for another example.
-;; To use time-stamping, add this line to your
.emacs
file:
+;; 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.
;; (add-hook 'before-save-hook 'time-stamp)
;; Now any time-stamp templates in your files will be updated automatically.
@@
-254,7
+254,7
@@
time-stamped file itself.")
(defun time-stamp ()
"Update the time stamp string(s) in the buffer.
A template in a file can be automatically updated with a new time stamp
(defun time-stamp ()
"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
.emacs
file:
+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
(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
@@
-424,10
+424,10
@@
format the string."
(let ((ts-real-time-zone (getenv "TZ")))
(unwind-protect
(progn
(let ((ts-real-time-zone (getenv "TZ")))
(unwind-protect
(progn
- (set
-time-zone-rule
time-stamp-time-zone)
+ (set
env "TZ"
time-stamp-time-zone)
(format-time-string
(time-stamp-string-preprocess ts-format)))
(format-time-string
(time-stamp-string-preprocess ts-format)))
- (set
-time-zone-rule
ts-real-time-zone)))
+ (set
env "TZ"
ts-real-time-zone)))
(format-time-string
(time-stamp-string-preprocess ts-format)))
;; handle version 1 compatibility
(format-time-string
(time-stamp-string-preprocess ts-format)))
;; handle version 1 compatibility
@@
-470,7
+470,7
@@
and all `time-stamp-format' compatibility."
(result "")
field-width
field-result
(result "")
field-width
field-result
- alt-form change-case
require-padding
+ alt-form change-case
(paren-level 0))
(while (< ind fmt-len)
(setq cur-char (aref format ind))
(paren-level 0))
(while (< ind fmt-len)
(setq cur-char (aref format ind))
@@
-480,7
+480,7
@@
and all `time-stamp-format' compatibility."
(cond
((eq cur-char ?%)
;; eat any additional args to allow for future expansion
(cond
((eq cur-char ?%)
;; eat any additional args to allow for future expansion
- (setq alt-form nil change-case nil
require-padding nil
field-width "")
+ (setq alt-form nil change-case nil field-width "")
(while (progn
(setq ind (1+ ind))
(setq cur-char (if (< ind fmt-len)
(while (progn
(setq ind (1+ ind))
(setq cur-char (if (< ind fmt-len)
@@
-706,5
+706,4
@@
around literals."
(provide 'time-stamp)
(provide 'time-stamp)
-;; arch-tag: 8a12c5c3-25d6-4a71-adc5-24b0e025a1e7
;;; time-stamp.el ends here
;;; time-stamp.el ends here