diff options
| author | Richard M. Stallman | 1995-11-25 03:47:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-25 03:47:12 +0000 |
| commit | 550d8777e29903407fffc0807575ca3439910b6c (patch) | |
| tree | 915c26c9e6459857b0ed6ee2e3c7280bfd21a5a9 | |
| parent | 72a9f8fd72a20ae8dfbf7e4202d3191733e52f04 (diff) | |
| download | emacs-550d8777e29903407fffc0807575ca3439910b6c.tar.gz emacs-550d8777e29903407fffc0807575ca3439910b6c.zip | |
(add-change-log-entry): Initialize add-log-full-name
and add-log-mailing-address before prompting.
| -rw-r--r-- | lisp/add-log.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index e77b8cdcb35..f89435a396f 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -149,6 +149,10 @@ Fourth arg NEW-ENTRY non-nil means always create a new entry at the front; | |||
| 149 | never append to an existing entry." | 149 | never append to an existing entry." |
| 150 | (interactive (list current-prefix-arg | 150 | (interactive (list current-prefix-arg |
| 151 | (prompt-for-change-log-name))) | 151 | (prompt-for-change-log-name))) |
| 152 | (or add-log-full-name | ||
| 153 | (setq add-log-full-name (user-full-name))) | ||
| 154 | (or add-log-mailing-address | ||
| 155 | (setq add-log-mailing-address user-mail-address)) | ||
| 152 | (if whoami | 156 | (if whoami |
| 153 | (progn | 157 | (progn |
| 154 | (setq add-log-full-name (read-input "Full name: " add-log-full-name)) | 158 | (setq add-log-full-name (read-input "Full name: " add-log-full-name)) |
| @@ -158,10 +162,6 @@ never append to an existing entry." | |||
| 158 | ;; s/he can edit the full name field in prompter if s/he wants. | 162 | ;; s/he can edit the full name field in prompter if s/he wants. |
| 159 | (setq add-log-mailing-address | 163 | (setq add-log-mailing-address |
| 160 | (read-input "Mailing address: " add-log-mailing-address)))) | 164 | (read-input "Mailing address: " add-log-mailing-address)))) |
| 161 | (or add-log-full-name | ||
| 162 | (setq add-log-full-name (user-full-name))) | ||
| 163 | (or add-log-mailing-address | ||
| 164 | (setq add-log-mailing-address user-mail-address)) | ||
| 165 | (let ((defun (funcall (or add-log-current-defun-function | 165 | (let ((defun (funcall (or add-log-current-defun-function |
| 166 | 'add-log-current-defun))) | 166 | 'add-log-current-defun))) |
| 167 | paragraph-end entry) | 167 | paragraph-end entry) |