# HG changeset patch # User Richard M. Stallman # Date 817271232 0 # Node ID ce23ae11d3fa5637d2df19e5033912fc958f8a6a # Parent 40e469e13255f0b5aabac79acf943e0ae15f2bc2 (add-change-log-entry): Initialize add-log-full-name and add-log-mailing-address before prompting. diff -r 40e469e13255 -r ce23ae11d3fa lisp/add-log.el --- a/lisp/add-log.el Sat Nov 25 03:45:25 1995 +0000 +++ b/lisp/add-log.el Sat Nov 25 03:47:12 1995 +0000 @@ -149,6 +149,10 @@ never append to an existing entry." (interactive (list current-prefix-arg (prompt-for-change-log-name))) + (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)) (if whoami (progn (setq add-log-full-name (read-input "Full name: " add-log-full-name)) @@ -158,10 +162,6 @@ ;; 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)