(gnus-group--setup-tool-bar-update): Fix last change
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 14 Apr 2015 01:53:40 +0000 (01:53 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 14 Apr 2015 01:53:40 +0000 (01:53 +0000)
* gnus-group.el (gnus-group--setup-tool-bar-update):
cursor-sensor-functions should be a list of functions.

lisp/ChangeLog
lisp/gnus-group.el
lisp/gnus-uu.el

index b175f3d..6b720dc 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gnus-group.el (gnus-group--setup-tool-bar-update):
+       cursor-sensor-functions should be a list of functions.
+
 2015-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * gnus-group.el (gnus-tmp-*): Declare.
 2015-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * gnus-group.el (gnus-tmp-*): Declare.
index 8e8d175..ff839d7 100644 (file)
@@ -1625,7 +1625,7 @@ if it is a string, only list groups matching REGEXP."
           (unless (bound-and-true-p cursor-sensor-mode)
             (cursor-sensor-mode 1))
           (gnus-put-text-property beg end 'cursor-sensor-functions
           (unless (bound-and-true-p cursor-sensor-mode)
             (cursor-sensor-mode 1))
           (gnus-put-text-property beg end 'cursor-sensor-functions
-                                  #'gnus-tool-bar-update))
+                                  '(gnus-tool-bar-update)))
       (gnus-put-text-property beg end 'point-entered
                               #'gnus-tool-bar-update)
       (gnus-put-text-property beg end 'point-left
       (gnus-put-text-property beg end 'point-entered
                               #'gnus-tool-bar-update)
       (gnus-put-text-property beg end 'point-left
index 55a881c..f5d4495 100644 (file)
@@ -875,8 +875,13 @@ When called interactively, prompt for REGEXP."
        (goto-char (setq beg (point-max)))
        (save-excursion
          (save-restriction
        (goto-char (setq beg (point-max)))
        (save-excursion
          (save-restriction
+            ;; FIXME: We save excursion and restriction in "*gnus-uu-body*",
+            ;; only to immediately move to another buffer?  And we narrow in
+            ;; that buffer without save-restriction?  And we finish the
+            ;; save-restriction with a call to `widen'?  How can that
+            ;; make sense?
            (set-buffer buffer)
            (set-buffer buffer)
-           (let (buffer-read-only)
+           (let ((inhibit-read-only t))
              (set-text-properties (point-min) (point-max) nil)
              ;; These two are necessary for XEmacs 19.12 fascism.
              (put-text-property (point-min) (point-max) 'invisible nil)
              (set-text-properties (point-min) (point-max) nil)
              ;; These two are necessary for XEmacs 19.12 fascism.
              (put-text-property (point-min) (point-max) 'invisible nil)