summaryrefslogtreecommitdiff
path: root/lisp/add-log.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-22 20:31:07 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-22 20:31:07 +0000
commite2e54f01151595a42451a359e99f9c807778b723 (patch)
tree9c3002dd14b7393ee8787dfb42c4b1cbbf54f6e1 /lisp/add-log.el
parent9d9ae06c9c40d8d69d06298b262d77db7a541d34 (diff)
downloademacs-e2e54f01151595a42451a359e99f9c807778b723.tar.gz
(add-change-log-entry): Set add-log-full-name and
add-log-mailing-address here. (add-log-mailing-address, add-log-full-name): Initialize to nil.
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r--lisp/add-log.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index db169295441..2c7af2d896c 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -35,15 +35,11 @@
\\[add-change-log-entry] calls this function (if nil, `add-log-current-defun'
instead) with no arguments. It returns a string or nil if it cannot guess.")
-;; This MUST not be autoloaded, since user-login-name
-;; cannot be known at Emacs dump time.
-(defvar add-log-full-name (user-full-name)
+(defvar add-log-full-name nil
"*Full name of user, for inclusion in ChangeLog daily headers.
This defaults to the value returned by the `user-full-name' function.")
-;; This MUST not be autoloaded, since user-login-name
-;; cannot be known at Emacs dump time.
-(defvar add-log-mailing-address user-mail-address
+(defvar 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'.")
@@ -133,6 +129,10 @@ never append to an existing entry."
;; s/he can edit the full name field in prompter if s/he wants.
(setq add-log-mailing-address
(read-input "Mailing address: " add-log-mailing-address))))
+ (or add-log-full-name
+ (setq add-log-full-name (user-full-name)))
+ (or add-log-mailing-address
+ (setq add-log-mailing-address user-mail-address))
(let ((defun (funcall (or add-log-current-defun-function
'add-log-current-defun)))
paragraph-end entry)