diff options
| author | Chong Yidong | 2005-09-12 22:58:55 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-09-12 22:58:55 +0000 |
| commit | 09c9e6bbb9cf894b406b40e8198e1360528ada71 (patch) | |
| tree | 6c9d17339bd2e74d740e99a5e543ecf0ef565b7a | |
| parent | 115f219da4851988a9eca58bae20257a752a7db3 (diff) | |
| download | emacs-09c9e6bbb9cf894b406b40e8198e1360528ada71.tar.gz emacs-09c9e6bbb9cf894b406b40e8198e1360528ada71.zip | |
2005-09-13 Chong Yidong <cyd@stupidchicken.com>
* mail/sendmail.el (mail): Use new buffer if `noerase' is `new'.
Fix behavior if noerase is `t' and there is no mail buffer.
* simple.el (sendmail-user-agent-compose): Use a new mail buffer
if `continue' is nil, rather than signal an error.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 7 | ||||
| -rw-r--r-- | lisp/simple.el | 5 |
3 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2074b5d3f02..88e95167d9d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,8 +3,11 @@ | |||
| 3 | * custom.el (custom-push-theme): Handle the case where a symbol is | 3 | * custom.el (custom-push-theme): Handle the case where a symbol is |
| 4 | bound but face properties have not yet been assigned. | 4 | bound but face properties have not yet been assigned. |
| 5 | 5 | ||
| 6 | * mail/sendmail.el (mail): Use new buffer if `noerase' argument is | 6 | * mail/sendmail.el (mail): Use new buffer if `noerase' is `new'. |
| 7 | `new'. | 7 | Fix behavior if noerase is `t' and there is no mail buffer. |
| 8 | |||
| 9 | * simple.el (sendmail-user-agent-compose): Use a new mail buffer | ||
| 10 | if `continue' is nil, rather than signal an error. | ||
| 8 | 11 | ||
| 9 | 2005-09-12 Richard M. Stallman <rms@gnu.org> | 12 | 2005-09-12 Richard M. Stallman <rms@gnu.org> |
| 10 | 13 | ||
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 32328a33177..f7c62026d80 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1657,6 +1657,9 @@ The seventh argument ACTIONS is a list of actions to take | |||
| 1657 | 1657 | ||
| 1658 | (if (eq noerase 'new) | 1658 | (if (eq noerase 'new) |
| 1659 | (pop-to-buffer (generate-new-buffer "*mail*")) | 1659 | (pop-to-buffer (generate-new-buffer "*mail*")) |
| 1660 | (and noerase | ||
| 1661 | (not (get-buffer "*mail*")) | ||
| 1662 | (setq noerase nil)) | ||
| 1660 | (pop-to-buffer "*mail*")) | 1663 | (pop-to-buffer "*mail*")) |
| 1661 | 1664 | ||
| 1662 | ;; Avoid danger that the auto-save file can't be written. | 1665 | ;; Avoid danger that the auto-save file can't be written. |
| @@ -1673,8 +1676,8 @@ The seventh argument ACTIONS is a list of actions to take | |||
| 1673 | ;; (in case the user has actually visited a file *mail*). | 1676 | ;; (in case the user has actually visited a file *mail*). |
| 1674 | ; (set-visited-file-name nil) | 1677 | ; (set-visited-file-name nil) |
| 1675 | (let (initialized) | 1678 | (let (initialized) |
| 1676 | (and (or (not noerase) | 1679 | (and (not (and noerase |
| 1677 | (eq noerase 'new)) | 1680 | (not (eq noerase 'new)))) |
| 1678 | (if buffer-file-name | 1681 | (if buffer-file-name |
| 1679 | (if (buffer-modified-p) | 1682 | (if (buffer-modified-p) |
| 1680 | (when (y-or-n-p "Buffer has unsaved changes; reinitialize it and discard them? ") | 1683 | (when (y-or-n-p "Buffer has unsaved changes; reinitialize it and discard them? ") |
diff --git a/lisp/simple.el b/lisp/simple.el index fe58a47610e..3d24a9222d4 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4444,9 +4444,8 @@ See also `read-mail-command' concerning reading mail." | |||
| 4444 | (let ((cc (cdr (assoc-string "cc" other-headers t))) | 4444 | (let ((cc (cdr (assoc-string "cc" other-headers t))) |
| 4445 | (in-reply-to (cdr (assoc-string "in-reply-to" other-headers t))) | 4445 | (in-reply-to (cdr (assoc-string "in-reply-to" other-headers t))) |
| 4446 | (body (cdr (assoc-string "body" other-headers t)))) | 4446 | (body (cdr (assoc-string "body" other-headers t)))) |
| 4447 | (or (mail continue to subject in-reply-to cc yank-action send-actions) | 4447 | (mail (if continue t 'new) |
| 4448 | continue | 4448 | to subject in-reply-to cc yank-action send-actions) |
| 4449 | (error "Message aborted")) | ||
| 4450 | (save-excursion | 4449 | (save-excursion |
| 4451 | (rfc822-goto-eoh) | 4450 | (rfc822-goto-eoh) |
| 4452 | (while other-headers | 4451 | (while other-headers |