[gnus git] branch master updated: n0-17-185-gb68284c =1= If the ~/Mail directory doesn't exist, use ~ as the auto-save directory

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  b68284cd7f7493ce930a73229eeb1e6784838ce0 (commit)
      from  5df742e42eade80dbf7c59abda4b62d93b7e6a3a (commit)


- Log -----------------------------------------------------------------
commit b68284cd7f7493ce930a73229eeb1e6784838ce0
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Sat Jul 16 21:44:25 2011 +0200

    If the ~/Mail directory doesn't exist, use ~ as the auto-save directory

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 604ec1d..f795e3f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2011-07-16  Lars Magne Ingebrigtsen  <[email protected]>
 
+	* message.el (message-auto-save-directory): If the ~/Mail directory
+	doesn't exist, use ~ as the auto-save directory (bug#4432).
+
 	* gnus-group.el (gnus-group-read-ephemeral-group): Start Gnus if it
 	hasn't already been started.
 
diff --git a/lisp/message.el b/lisp/message.el
index 0386b20..cdc41ea 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -1354,7 +1354,9 @@ text and it replaces `self-insert-command' with the other command, e.g.
   :type '(repeat function))
 
 (defcustom message-auto-save-directory
+  (if (file-exists-p message-directory)
   (file-name-as-directory (expand-file-name "drafts" message-directory))
+    "~/")
   "*Directory where Message auto-saves buffers if Gnus isn't running.
 If nil, Message won't auto-save."
   :group 'message-buffers

-----------------------------------------------------------------------
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/message.el |    4 +++-
 2 files changed, 6 insertions(+), 1 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, master 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.