[gnus git] branch no-gnus updated: m0-1-44-g467fc04 =1= * gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't running.

Lars Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  467fc0443669cc54892b01c48cf9807ca4ea1c17 (commit)
      from  81d1e4e06988b1450ecb3ecf5d45c517fc83b887 (commit)


- Log -----------------------------------------------------------------
commit 467fc0443669cc54892b01c48cf9807ca4ea1c17
Author: Lars Ingebrigtsen <[email protected]>
Date:   Thu Feb 9 23:53:09 2012 +0100

    * gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't running.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 020de90..6bc4693 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2012-02-09  Lars Ingebrigtsen  <[email protected]>
 
+	* gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't
+	running.
+
 	* nnimap.el (nnimap-wait-for-response): Minor fixup of message string.
 
 	* gnus.el (gnus-server-extend-method): Don't add an -address component
diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el
index cb5460f..f92dc5e 100644
--- a/lisp/gnus-msg.el
+++ b/lisp/gnus-msg.el
@@ -481,8 +481,12 @@ Thank you for your help in stamping out bugs.
 		      switch-action yank-action send-actions return-action)
   "Start editing a mail message to be sent.
 Like `message-mail', but with Gnus paraphernalia, particularly the
-Gcc: header for archiving purposes."
+Gcc: header for archiving purposes.
+If Gnus isn't running, a plain `message-mail' setup is used
+instead."
   (interactive)
+  (if (not (gnus-alive-p))
+      (message-mail)
   (let ((buf (current-buffer))
 	mail-buf)
     (gnus-setup-message 'message
@@ -491,9 +495,9 @@ Gcc: header for archiving purposes."
     (when switch-action
       (setq mail-buf (current-buffer))
       (switch-to-buffer buf)
-      (apply switch-action mail-buf nil)))
+	(apply switch-action mail-buf nil))
   ;; COMPOSEFUNC should return t if succeed.  Undocumented ???
-  t)
+      t)))
 
 ;;;###autoload
 (defun gnus-button-mailto (address)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    3 +++
 lisp/gnus-msg.el |   30 +++++++++++++++++-------------
 2 files changed, 20 insertions(+), 13 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, no-gnus has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.