gnus-sum.el (gnus-summary-mode): Don't make bidi-paragraph-direction bound in old...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 26 Jan 2012 23:01:59 +0000 (23:01 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 26 Jan 2012 23:01:59 +0000 (23:01 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 346d1bf..1a5dc6a 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-26  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-summary-mode): Don't make bidi-paragraph-direction
+       bound in old Emacsen and XEmacsen.
+
 2012-01-26  Nick Alcock  <nick.alcock@oracle.com>  (tiny change)
 
        * gnus.el (gnus-group-find-parameter): Check for liveness of the
index 2097dfb..bbb4c46 100644 (file)
@@ -3060,8 +3060,6 @@ When FORCE, rebuild the tool bar."
 (defvar bookmark-make-record-function)
 \f
 
-(defvar bidi-paragraph-direction)
-
 (defun gnus-summary-mode (&optional group)
   "Major mode for reading articles.
 
@@ -3100,8 +3098,9 @@ The following commands are available:
   (setq buffer-read-only t             ;Disable modification
        show-trailing-whitespace nil)
   (setq truncate-lines t)
-  ;; Force paragraph direction to be left-to-right.
-  (setq bidi-paragraph-direction 'left-to-right)
+  ;; Force paragraph direction to be left-to-right.  Don't make it
+  ;; bound in old Emacsen and XEmacsen.
+  (set (make-local-variable 'bidi-paragraph-direction) 'left-to-right)
   (add-to-invisibility-spec '(gnus-sum . t))
   (gnus-summary-set-display-table)
   (gnus-set-default-directory)