aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/add-log.el36
2 files changed, 35 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0c4515e40b1..a7746c25b01 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,23 @@
12004-10-27 Richard M. Stallman <rms@gnu.org> 12004-10-27 Richard M. Stallman <rms@gnu.org>
2 2
3 * add-log.el (add-change-log-entry): Set up mailing address
4 and full name later, and don't alter add-log-mailing-address
5 or add-log-full-name.
6
7 * elide-head.el (elide-head): Change error to message.
8 (elide-head-show): Likewise.
9
10 * apropos.el (apropos-macrop): Doc fix.
11
12 * mouse.el (mouse-show-mark): Do most processing the same
13 regardless of transient-mark-mode.
14
15 * shadowfile.el (shadow-copy-files): Use interactive-p
16 only to control whether to print a message.
17
18 * tar-mode.el (tar-mode): Use write-contents-functions,
19 not write-contents-hooks.
20
3 * eshell/em-unix.el (eshell-du-sum-directory): Don't use 21 * eshell/em-unix.el (eshell-du-sum-directory): Don't use
4 directory-sep-char. 22 directory-sep-char.
5 23
diff --git a/lisp/add-log.el b/lisp/add-log.el
index 26faea2ddc3..ae135b2bfb3 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -471,20 +471,6 @@ Today's date is calculated according to `change-log-time-zone-rule' if
471non-nil, otherwise in local time." 471non-nil, otherwise in local time."
472 (interactive (list current-prefix-arg 472 (interactive (list current-prefix-arg
473 (prompt-for-change-log-name))) 473 (prompt-for-change-log-name)))
474 (or add-log-full-name
475 (setq add-log-full-name (user-full-name)))
476 (or add-log-mailing-address
477 (setq add-log-mailing-address user-mail-address))
478 (if whoami
479 (progn
480 (setq add-log-full-name (read-input "Full name: " add-log-full-name))
481 ;; Note that some sites have room and phone number fields in
482 ;; full name which look silly when inserted. Rather than do
483 ;; anything about that here, let user give prefix argument so that
484 ;; s/he can edit the full name field in prompter if s/he wants.
485 (setq add-log-mailing-address
486 (read-input "Mailing address: " add-log-mailing-address))))
487
488 (let* ((defun (add-log-current-defun)) 474 (let* ((defun (add-log-current-defun))
489 (version (and change-log-version-info-enabled 475 (version (and change-log-version-info-enabled
490 (change-log-version-number-search))) 476 (change-log-version-number-search)))
@@ -495,7 +481,19 @@ non-nil, otherwise in local time."
495 (file-name (expand-file-name (find-change-log file-name buffer-file))) 481 (file-name (expand-file-name (find-change-log file-name buffer-file)))
496 ;; Set ITEM to the file name to use in the new item. 482 ;; Set ITEM to the file name to use in the new item.
497 (item (add-log-file-name buffer-file file-name)) 483 (item (add-log-file-name buffer-file file-name))
498 bound) 484 bound
485 (full-name (or add-log-full-name (user-full-name)))
486 (mailing-address (or add-log-mailing-address user-mail-address)))
487
488 (if whoami
489 (progn
490 (setq full-name (read-input "Full name: " full-name))
491 ;; Note that some sites have room and phone number fields in
492 ;; full name which look silly when inserted. Rather than do
493 ;; anything about that here, let user give prefix argument so that
494 ;; s/he can edit the full name field in prompter if s/he wants.
495 (setq mailing-address
496 (read-input "Mailing address: " mailing-address))))
499 497
500 (unless (equal file-name buffer-file-name) 498 (unless (equal file-name buffer-file-name)
501 (if (or other-window (window-dedicated-p (selected-window))) 499 (if (or other-window (window-dedicated-p (selected-window)))
@@ -515,11 +513,11 @@ non-nil, otherwise in local time."
515 ;; Advance into first entry if it is usable; else make new one. 513 ;; Advance into first entry if it is usable; else make new one.
516 (let ((new-entries (mapcar (lambda (addr) 514 (let ((new-entries (mapcar (lambda (addr)
517 (concat (funcall add-log-time-format) 515 (concat (funcall add-log-time-format)
518 " " add-log-full-name 516 " " full-name
519 " <" addr ">")) 517 " <" addr ">"))
520 (if (consp add-log-mailing-address) 518 (if (consp mailing-address)
521 add-log-mailing-address 519 mailing-address
522 (list add-log-mailing-address))))) 520 (list mailing-address)))))
523 (if (and (not add-log-always-start-new-record) 521 (if (and (not add-log-always-start-new-record)
524 (let ((hit nil)) 522 (let ((hit nil))
525 (dolist (entry new-entries hit) 523 (dolist (entry new-entries hit)