# HG changeset patch # User Nick Roberts # Date 1185398628 0 # Node ID bd14c18b64b91d65eced5b858d384eb57f76d568 # Parent 76ba0f031e99e28e9d440967ff2190a9332c4d03 (change-log-redate): Remove (not needed anymore and doesn't appear to work). diff -r 76ba0f031e99 -r bd14c18b64b9 lisp/add-log.el --- a/lisp/add-log.el Wed Jul 25 21:03:31 2007 +0000 +++ b/lisp/add-log.el Wed Jul 25 21:23:48 2007 +0000 @@ -1155,29 +1155,6 @@ (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