(gnus-summary-set-article-display-arrow): Make overlay-arrow-position and
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 25 Dec 2008 03:10:37 +0000 (03:10 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 25 Dec 2008 03:10:37 +0000 (03:10 +0000)
 overlay-arrow-string buffer-local;
 no need to check if those variables exist (first appeared in Emacs 18.50).

lisp/ChangeLog
lisp/gnus-sum.el

index 042e445..75c73c4 100644 (file)
@@ -1,3 +1,9 @@
+2008-12-25  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-summary-set-article-display-arrow): Make
+       overlay-arrow-position and overlay-arrow-string buffer-local; no need
+       to check if those variables exist (first appeared in Emacs 18.50).
+
 2008-12-24  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-util.el (mm-line-number-at-pos): New function.
index dc7bde6..5b3f433 100644 (file)
@@ -3455,9 +3455,9 @@ display only a single character."
 
 (defun gnus-summary-set-article-display-arrow (pos)
   "Update the overlay arrow to point to line at position POS."
-  (when (and gnus-summary-display-arrow
-            (boundp 'overlay-arrow-position)
-            (boundp 'overlay-arrow-string))
+  (when gnus-summary-display-arrow
+    (make-local-variable 'overlay-arrow-position)
+    (make-local-variable 'overlay-arrow-string)
     (save-excursion
       (goto-char pos)
       (beginning-of-line)