aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/add-log.el15
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6fd0a3b3e44..fc755882a6b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-07-15 Roland McGrath <roland@frob.com>
2
3 * add-log.el (add-change-log-entry): Check add-log-full-name
4 and add-log-mailing-address later, after change-log-mode-hook.
5
12007-07-15 Richard Stallman <rms@gnu.org> 62007-07-15 Richard Stallman <rms@gnu.org>
2 7
3 * isearch.el (isearch-mode, isearch-done): 8 * isearch.el (isearch-mode, isearch-done):
diff --git a/lisp/add-log.el b/lisp/add-log.el
index 08ce78d371d..09368d08f9e 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -509,19 +509,19 @@ non-nil, otherwise in local time."
509 (file-name (expand-file-name (find-change-log file-name buffer-file))) 509 (file-name (expand-file-name (find-change-log file-name buffer-file)))
510 ;; Set ITEM to the file name to use in the new item. 510 ;; Set ITEM to the file name to use in the new item.
511 (item (add-log-file-name buffer-file file-name)) 511 (item (add-log-file-name buffer-file file-name))
512 bound 512 bound full-name mailing-address)
513 (full-name (or add-log-full-name (user-full-name)))
514 (mailing-address (or add-log-mailing-address user-mail-address)))
515 513
516 (if whoami 514 (if whoami
517 (progn 515 (progn
518 (setq full-name (read-string "Full name: " full-name)) 516 (setq full-name (read-string "Full name: "
517 (or add-log-full-name (user-full-name))))
519 ;; Note that some sites have room and phone number fields in 518 ;; Note that some sites have room and phone number fields in
520 ;; full name which look silly when inserted. Rather than do 519 ;; full name which look silly when inserted. Rather than do
521 ;; anything about that here, let user give prefix argument so that 520 ;; anything about that here, let user give prefix argument so that
522 ;; s/he can edit the full name field in prompter if s/he wants. 521 ;; s/he can edit the full name field in prompter if s/he wants.
523 (setq mailing-address 522 (setq mailing-address
524 (read-string "Mailing address: " mailing-address)))) 523 (read-string "Mailing address: "
524 (or add-log-mailing-address user-mail-address)))))
525 525
526 (unless (equal file-name buffer-file-name) 526 (unless (equal file-name buffer-file-name)
527 (if (or other-window (window-dedicated-p (selected-window))) 527 (if (or other-window (window-dedicated-p (selected-window)))
@@ -532,6 +532,11 @@ non-nil, otherwise in local time."
532 (undo-boundary) 532 (undo-boundary)
533 (goto-char (point-min)) 533 (goto-char (point-min))
534 534
535 (or full-name
536 (setq full-name (or add-log-full-name (user-full-name))))
537 (or mailing-address
538 (setq mailing-address (or add-log-mailing-address user-mail-address)))
539
535 ;; If file starts with a copyright and permission notice, skip them. 540 ;; If file starts with a copyright and permission notice, skip them.
536 ;; Assume they end at first blank line. 541 ;; Assume they end at first blank line.
537 (when (looking-at "Copyright") 542 (when (looking-at "Copyright")