Try to fix XEmacs message-options buffer-local issue.
authorTed Zlatanov <tzz@lifelogs.com>
Wed, 2 Mar 2011 20:32:02 +0000 (14:32 -0600)
committerTed Zlatanov <tzz@lifelogs.com>
Wed, 2 Mar 2011 20:32:02 +0000 (14:32 -0600)
* message.el (message-options): Make buffer-local two ways to attempt
to fix a XEmacs bug.

lisp/ChangeLog
lisp/message.el

index ace8c1c..e4538a7 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-02  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * message.el (message-options): Make buffer-local two ways to attempt
+       to fix a XEmacs bug.
+
 2011-03-02  Julien Danjou  <julien@danjou.info>
 
        * gnus-art.el (gnus-with-article-buffer): Fix buffer live check.
index c8a706e..9b50e27 100644 (file)
@@ -1858,7 +1858,10 @@ 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)
+
+(if (featurep 'xemacs)
+    (make-local-variable 'message-options)
+  (make-variable-buffer-local 'message-options))
 
 (defvar message-send-mail-real-function nil
   "Internal send mail function.")