aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-22 20:31:07 +0000
committerRichard M. Stallman1994-09-22 20:31:07 +0000
commit59ac2ce681fdd9622d50bc984005554fbce453a8 (patch)
tree77c799a5a180ec1f3ad41b38a2dbc1b6532a778f
parentcf1b1bf8c0b0f5a160ea0caf2f7f1c9e60e14639 (diff)
downloademacs-59ac2ce681fdd9622d50bc984005554fbce453a8.tar.gz
emacs-59ac2ce681fdd9622d50bc984005554fbce453a8.zip
(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.
-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 @@
35\\[add-change-log-entry] calls this function (if nil, `add-log-current-defun' 35\\[add-change-log-entry] calls this function (if nil, `add-log-current-defun'
36instead) with no arguments. It returns a string or nil if it cannot guess.") 36instead) with no arguments. It returns a string or nil if it cannot guess.")
37 37
38;; This MUST not be autoloaded, since user-login-name 38(defvar add-log-full-name nil
39;; cannot be known at Emacs dump time.
40(defvar add-log-full-name (user-full-name)
41 "*Full name of user, for inclusion in ChangeLog daily headers. 39 "*Full name of user, for inclusion in ChangeLog daily headers.
42This defaults to the value returned by the `user-full-name' function.") 40This defaults to the value returned by the `user-full-name' function.")
43 41
44;; This MUST not be autoloaded, since user-login-name 42(defvar add-log-mailing-address nil
45;; cannot be known at Emacs dump time.
46(defvar add-log-mailing-address user-mail-address
47 "*Electronic mail address of user, for inclusion in ChangeLog daily headers. 43 "*Electronic mail address of user, for inclusion in ChangeLog daily headers.
48This defaults to the value of `user-mail-address'.") 44This defaults to the value of `user-mail-address'.")
49 45
@@ -133,6 +129,10 @@ never append to an existing entry."
133 ;; s/he can edit the full name field in prompter if s/he wants. 129 ;; s/he can edit the full name field in prompter if s/he wants.
134 (setq add-log-mailing-address 130 (setq add-log-mailing-address
135 (read-input "Mailing address: " add-log-mailing-address)))) 131 (read-input "Mailing address: " add-log-mailing-address))))
132 (or add-log-full-name
133 (setq add-log-full-name (user-full-name)))
134 (or add-log-mailing-address
135 (setq add-log-mailing-address user-mail-address))
136 (let ((defun (funcall (or add-log-current-defun-function 136 (let ((defun (funcall (or add-log-current-defun-function
137 'add-log-current-defun))) 137 'add-log-current-defun)))
138 paragraph-end entry) 138 paragraph-end entry)