diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-07-25 21:25:16 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-07-25 21:25:16 +0000 |
commit | 8a00d4ff76b3253b6ea04b32969c247511d65518 (patch) | |
tree | dc2f85dd8d40d336bd572fec366aae868354b6be /lisp/add-log.el | |
parent | 52b71f49ad26e3ef1a44ec313f3ad6278f5ebc27 (diff) | |
download | emacs-8a00d4ff76b3253b6ea04b32969c247511d65518.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.el | 23 |
1 files changed, 0 insertions, 23 deletions
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." (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 |