diff options
| author | Nick Roberts | 2007-07-25 21:25:16 +0000 |
|---|---|---|
| committer | Nick Roberts | 2007-07-25 21:25:16 +0000 |
| commit | 8a00d4ff76b3253b6ea04b32969c247511d65518 (patch) | |
| tree | dc2f85dd8d40d336bd572fec366aae868354b6be | |
| parent | 52b71f49ad26e3ef1a44ec313f3ad6278f5ebc27 (diff) | |
| download | emacs-8a00d4ff76b3253b6ea04b32969c247511d65518.tar.gz emacs-8a00d4ff76b3253b6ea04b32969c247511d65518.zip | |
(change-log-redate): Remove (not needed anymore and
doesn't appear to work).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/add-log.el | 23 |
2 files changed, 5 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 20996aa2244..ef350751248 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-07-25 Nick Roberts <nickrob@snap.net.nz> | ||
| 2 | |||
| 3 | * add-log.el (change-log-redate): Remove (not needed anymore and | ||
| 4 | doesn't appear to work). | ||
| 5 | |||
| 1 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * frame.el: Use mapc and dolist instead of mapcar where possible. | 8 | * frame.el: Use mapc and dolist instead of mapcar where possible. |
diff --git a/lisp/add-log.el b/lisp/add-log.el index 458dfcff523..25d0ab4a7cb 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -1155,29 +1155,6 @@ old-style time formats for entries are supported." | |||
| 1155 | (goto-char (point-max))) | 1155 | (goto-char (point-max))) |
| 1156 | (insert-buffer-substring other-buf start))))))) | 1156 | (insert-buffer-substring other-buf start))))))) |
| 1157 | 1157 | ||
| 1158 | ;;;###autoload | ||
| 1159 | (defun change-log-redate () | ||
| 1160 | "Fix any old-style date entries in the current log file to default format." | ||
| 1161 | (interactive) | ||
| 1162 | (require 'timezone) | ||
| 1163 | (save-excursion | ||
| 1164 | (goto-char (point-min)) | ||
| 1165 | (while (re-search-forward "^\\sw.........[0-9:+ ]*" nil t) | ||
| 1166 | (unless (= 12 (- (match-end 0) (match-beginning 0))) | ||
| 1167 | (let* ((date (save-match-data | ||
| 1168 | (timezone-fix-time (match-string 0) nil nil))) | ||
| 1169 | (zone (if (consp (aref date 6)) | ||
| 1170 | (nth 1 (aref date 6))))) | ||
| 1171 | (replace-match (format-time-string | ||
| 1172 | "%Y-%m-%d " | ||
| 1173 | (encode-time (aref date 5) | ||
| 1174 | (aref date 4) | ||
| 1175 | (aref date 3) | ||
| 1176 | (aref date 2) | ||
| 1177 | (aref date 1) | ||
| 1178 | (aref date 0) | ||
| 1179 | zone)))))))) | ||
| 1180 | |||
| 1181 | (provide 'add-log) | 1158 | (provide 'add-log) |
| 1182 | 1159 | ||
| 1183 | ;; arch-tag: 81eee6fc-088f-4372-a37f-80ad9620e762 | 1160 | ;; arch-tag: 81eee6fc-088f-4372-a37f-80ad9620e762 |