[gnus git] branch master updated: n0-13-70-g554522c =1= Make message-options buffer-local only under GNU Emacs.

Daiki Ueno <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  554522c045d2306eca66e7407fb9797ae722d35e (commit)
      from  9aa1090e4bd3d5c73a7a646139c91a120d8490f7 (commit)


- Log -----------------------------------------------------------------
commit 554522c045d2306eca66e7407fb9797ae722d35e
Author: Daiki Ueno <[email protected]>
Date:   Sat Mar 5 05:47:40 2011 +0900

    Make message-options buffer-local only under GNU Emacs.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 35d9620..c9afde5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,8 @@
 2011-03-04  Daiki Ueno  <[email protected]>
 
-	* message.el (message-options): Revert 22da67af (workaround for
-	XEmacs buffer-local issue).
+	* message.el (message-options): Revert 22da67af (workaround for XEmacs
+	buffer-local issue); don't mark it buffer-local when running under
+	XEmacs.
 
 2011-03-03  Tassilo Horn  <[email protected]>
 
diff --git a/lisp/message.el b/lisp/message.el
index c8a706e..a6e007a 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -1858,7 +1858,12 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'."
 
 (defvar	message-options nil
   "Some saved answers when sending message.")
-(make-variable-buffer-local 'message-options)
+;; FIXME: On XEmacs this causes problems since let-binding like:
+;; (let ((message-options message-options)) ...)
+;; as in `message-send' and `mml-preview' loses to buffer-local
+;; variable initialization.
+(unless (featurep 'xemacs)
+  (make-variable-buffer-local 'message-options))
 
 (defvar message-send-mail-real-function nil
   "Internal send mail function.")

-----------------------------------------------------------------------
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  |    5 +++--
 lisp/message.el |    7 ++++++-
 2 files changed, 9 insertions(+), 3 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.