diff options
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index e35f87288e9..99f1735dfec 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -467,11 +467,17 @@ Gcc: header for archiving purposes. | |||
| 467 | If Gnus isn't running, a plain `message-mail' setup is used | 467 | If Gnus isn't running, a plain `message-mail' setup is used |
| 468 | instead." | 468 | instead." |
| 469 | (interactive) | 469 | (interactive) |
| 470 | (if (not (gnus-alive-p)) | 470 | (if (and (not (gnus-alive-p)) |
| 471 | (progn | 471 | (condition-case err |
| 472 | (message "Gnus not running; using plain Message mode") | 472 | (progn |
| 473 | (message-mail to subject other-headers continue | 473 | (message "Gnus not running. Starting Gnus...") |
| 474 | switch-action yank-action send-actions return-action)) | 474 | (save-window-excursion (gnus)) |
| 475 | nil) | ||
| 476 | (error | ||
| 477 | (message "Gnus failed with %s. Using plain Message mode" | ||
| 478 | (error-message-string err))))) | ||
| 479 | (message-mail to subject other-headers continue | ||
| 480 | switch-action yank-action send-actions return-action) | ||
| 475 | (let ((buf (current-buffer)) | 481 | (let ((buf (current-buffer)) |
| 476 | ;; Don't use posting styles corresponding to any existing group. | 482 | ;; Don't use posting styles corresponding to any existing group. |
| 477 | ;; (group-name gnus-newsgroup-name) | 483 | ;; (group-name gnus-newsgroup-name) |