[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/add-log.el
From: |
Colin Walters |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/add-log.el |
Date: |
Mon, 13 May 2002 01:47:30 -0400 |
Index: emacs/lisp/add-log.el
diff -c emacs/lisp/add-log.el:1.137 emacs/lisp/add-log.el:1.138
*** emacs/lisp/add-log.el:1.137 Sun May 12 13:28:42 2002
--- emacs/lisp/add-log.el Mon May 13 01:47:29 2002
***************
*** 67,76 ****
;;;###autoload
(defcustom add-log-mailing-address nil
! "*Electronic mail address of user, for inclusion in ChangeLog daily headers.
! This defaults to the value of `user-mail-address'."
:type '(choice (const :tag "Default" nil)
! string)
:group 'change-log)
(defcustom add-log-time-format 'add-log-iso8601-time-string
--- 67,79 ----
;;;###autoload
(defcustom add-log-mailing-address nil
! "*Electronic mail addresses of user, for inclusion in ChangeLog headers.
! This defaults to the value of `user-mail-address'. In addition to
! being a simple string, this value can also be a list. All elements
! will be recognized as referring to the same user; when creating a new
! ChangeLog entry, one element will be chosen at random."
:type '(choice (const :tag "Default" nil)
! (repeat string))
:group 'change-log)
(defcustom add-log-time-format 'add-log-iso8601-time-string
***************
*** 476,488 ****
(skip-chars-forward "\n"))
;; Advance into first entry if it is usable; else make new one.
! (let ((new-entry (concat (funcall add-log-time-format)
! " " add-log-full-name
! " <" add-log-mailing-address ">")))
(if (and (not add-log-always-start-new-record)
! (looking-at (regexp-quote new-entry)))
(forward-line 1)
! (insert new-entry "\n\n")
(forward-line -1)))
;; Determine where we should stop searching for a usable
--- 479,500 ----
(skip-chars-forward "\n"))
;; Advance into first entry if it is usable; else make new one.
! (let ((new-entries (mapcar (lambda (addr)
! (concat (funcall add-log-time-format)
! " " add-log-full-name
! " <" addr ">"))
! (if (consp add-log-mailing-address)
! add-log-mailing-address
! (list add-log-mailing-address)))))
(if (and (not add-log-always-start-new-record)
! (let ((hit nil))
! (dolist (entry new-entries hit)
! (when (looking-at (regexp-quote entry))
! (setq hit t)))))
(forward-line 1)
! (insert (nth (random (length new-entries))
! new-entries)
! "\n\n")
(forward-line -1)))
;; Determine where we should stop searching for a usable