summaryrefslogtreecommitdiff
path: root/lisp/add-log.el
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-07-25 21:46:01 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-07-25 21:46:01 +0000
commit6bd2011cd36e9c3308241e7d8c8584f74bb5aba9 (patch)
tree573b863176092f2b6b15308c9050bd1305c0b898 /lisp/add-log.el
parent5a1164db12e6aee1f623ee58c44a8fbb0a630051 (diff)
downloademacs-6bd2011cd36e9c3308241e7d8c8584f74bb5aba9.tar.gz
(change-log-redate): Remove (not needed anymore and
doesn't appear to work).
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r--lisp/add-log.el23
1 files changed, 0 insertions, 23 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index fd6089184c8..d60580a1c0d 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -1104,29 +1104,6 @@ old-style time formats for entries are supported."
(goto-char (point-max)))
(insert-buffer-substring other-buf start)))))))
-;;;###autoload
-(defun change-log-redate ()
- "Fix any old-style date entries in the current log file to default format."
- (interactive)
- (require 'timezone)
- (save-excursion
- (goto-char (point-min))
- (while (re-search-forward "^\\sw.........[0-9:+ ]*" nil t)
- (unless (= 12 (- (match-end 0) (match-beginning 0)))
- (let* ((date (save-match-data
- (timezone-fix-time (match-string 0) nil nil)))
- (zone (if (consp (aref date 6))
- (nth 1 (aref date 6)))))
- (replace-match (format-time-string
- "%Y-%m-%d "
- (encode-time (aref date 5)
- (aref date 4)
- (aref date 3)
- (aref date 2)
- (aref date 1)
- (aref date 0)
- zone))))))))
-
(provide 'add-log)
;; arch-tag: 81eee6fc-088f-4372-a37f-80ad9620e762