diff options
| author | Stefan Monnier | 2001-07-16 01:50:49 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-07-16 01:50:49 +0000 |
| commit | 1407571dbe26b5b484dbf4f3d434c788969eebb2 (patch) | |
| tree | f81a1619e2e14ccdd53c6ec90392b00905f8d2b2 | |
| parent | 33fa669197059524b286107cbd7c4684b41072df (diff) | |
| download | emacs-1407571dbe26b5b484dbf4f3d434c788969eebb2.tar.gz emacs-1407571dbe26b5b484dbf4f3d434c788969eebb2.zip | |
(reporter-submit-bug-report):
Don't abuse make-variable-buffer-local. Fix call to add-hook.
| -rw-r--r-- | lisp/mail/reporter.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/mail/reporter.el b/lisp/mail/reporter.el index 341ef8de2b2..60fabaebf0f 100644 --- a/lisp/mail/reporter.el +++ b/lisp/mail/reporter.el | |||
| @@ -318,7 +318,7 @@ is non-nil. | |||
| 318 | 318 | ||
| 319 | This function does not send a message; it uses the given information | 319 | This function does not send a message; it uses the given information |
| 320 | to initialize a a messagem, which the user can then edit and finally send | 320 | to initialize a a messagem, which the user can then edit and finally send |
| 321 | (or decline to send). The variable `mail-user-agent' controls which | 321 | \(or decline to send). The variable `mail-user-agent' controls which |
| 322 | mail-sending package is used for editing and sending the message." | 322 | mail-sending package is used for editing and sending the message." |
| 323 | (let ((reporter-eval-buffer (current-buffer)) | 323 | (let ((reporter-eval-buffer (current-buffer)) |
| 324 | final-resting-place | 324 | final-resting-place |
| @@ -370,9 +370,7 @@ mail-sending package is used for editing and sending the message." | |||
| 370 | (skip-chars-backward " \t\n") | 370 | (skip-chars-backward " \t\n") |
| 371 | (setq reporter-initial-text (buffer-substring after-sep-pos (point)))) | 371 | (setq reporter-initial-text (buffer-substring after-sep-pos (point)))) |
| 372 | (if (setq hookvar (get agent 'hookvar)) | 372 | (if (setq hookvar (get agent 'hookvar)) |
| 373 | (progn | 373 | (add-hook hookvar 'reporter-bug-hook nil t)) |
| 374 | (make-variable-buffer-local hookvar) | ||
| 375 | (add-hook hookvar 'reporter-bug-hook))) | ||
| 376 | 374 | ||
| 377 | ;; compose the minibuf message and display this. | 375 | ;; compose the minibuf message and display this. |
| 378 | (let* ((sendkey-whereis (where-is-internal | 376 | (let* ((sendkey-whereis (where-is-internal |