]> git.eshelyaron.com Git - emacs.git/commitdiff
(change-log-redate): Remove (not needed anymore and
authorNick Roberts <nickrob@snap.net.nz>
Wed, 25 Jul 2007 21:25:16 +0000 (21:25 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Wed, 25 Jul 2007 21:25:16 +0000 (21:25 +0000)
doesn't appear to work).

lisp/ChangeLog
lisp/add-log.el

index 20996aa22446fb37183eb54bc6c54d09e3e0ccdf..ef3507512484e3b3fc8b66536ba1d228a197342a 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-25  Nick Roberts  <nickrob@snap.net.nz>
+
+       * add-log.el (change-log-redate): Remove (not needed anymore and
+       doesn't appear to work).
+
 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * frame.el: Use mapc and dolist instead of mapcar where possible.
index 458dfcff52333cfa4632b242c9526d9d9fe6ad72..25d0ab4a7cb41ff206260e078504cc9f83e5f6b3 100644 (file)
@@ -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