diff options
| author | Lars Ingebrigtsen | 2012-02-09 23:07:49 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-02-09 23:07:49 +0000 |
| commit | 7582f8442322a9f0b42d0960652b3ce2d6daf30c (patch) | |
| tree | 5ff826a2a90b743ea14cd246be26ecd6c5d930ef /lisp | |
| parent | 4c7e65bf4f3fb9d24ec23f68047486c3c182ff65 (diff) | |
| download | emacs-7582f8442322a9f0b42d0960652b3ce2d6daf30c.tar.gz emacs-7582f8442322a9f0b42d0960652b3ce2d6daf30c.zip | |
gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't running.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 30 |
2 files changed, 20 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6ce85227e0b..ce40019487a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-02-09 Lars Ingebrigtsen <larsi@gnus.org> | 1 | 2012-02-09 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't | ||
| 4 | running. | ||
| 5 | |||
| 3 | * nnimap.el (nnimap-wait-for-response): Minor fixup of message string. | 6 | * nnimap.el (nnimap-wait-for-response): Minor fixup of message string. |
| 4 | 7 | ||
| 5 | * gnus.el (gnus-server-extend-method): Don't add an -address component | 8 | * gnus.el (gnus-server-extend-method): Don't add an -address component |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index cb5460f3ecf..f92dc5e91d0 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -478,22 +478,26 @@ Thank you for your help in stamping out bugs. | |||
| 478 | 478 | ||
| 479 | ;;;###autoload | 479 | ;;;###autoload |
| 480 | (defun gnus-msg-mail (&optional to subject other-headers continue | 480 | (defun gnus-msg-mail (&optional to subject other-headers continue |
| 481 | switch-action yank-action send-actions return-action) | 481 | switch-action yank-action send-actions return-action) |
| 482 | "Start editing a mail message to be sent. | 482 | "Start editing a mail message to be sent. |
| 483 | Like `message-mail', but with Gnus paraphernalia, particularly the | 483 | Like `message-mail', but with Gnus paraphernalia, particularly the |
| 484 | Gcc: header for archiving purposes." | 484 | Gcc: header for archiving purposes. |
| 485 | If Gnus isn't running, a plain `message-mail' setup is used | ||
| 486 | instead." | ||
| 485 | (interactive) | 487 | (interactive) |
| 486 | (let ((buf (current-buffer)) | 488 | (if (not (gnus-alive-p)) |
| 487 | mail-buf) | 489 | (message-mail) |
| 488 | (gnus-setup-message 'message | 490 | (let ((buf (current-buffer)) |
| 489 | (message-mail to subject other-headers continue | 491 | mail-buf) |
| 490 | nil yank-action send-actions return-action)) | 492 | (gnus-setup-message 'message |
| 491 | (when switch-action | 493 | (message-mail to subject other-headers continue |
| 492 | (setq mail-buf (current-buffer)) | 494 | nil yank-action send-actions return-action)) |
| 493 | (switch-to-buffer buf) | 495 | (when switch-action |
| 494 | (apply switch-action mail-buf nil))) | 496 | (setq mail-buf (current-buffer)) |
| 495 | ;; COMPOSEFUNC should return t if succeed. Undocumented ??? | 497 | (switch-to-buffer buf) |
| 496 | t) | 498 | (apply switch-action mail-buf nil)) |
| 499 | ;; COMPOSEFUNC should return t if succeed. Undocumented ??? | ||
| 500 | t))) | ||
| 497 | 501 | ||
| 498 | ;;;###autoload | 502 | ;;;###autoload |
| 499 | (defun gnus-button-mailto (address) | 503 | (defun gnus-button-mailto (address) |