2000-12-20 01:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 20 Dec 2000 06:42:09 +0000 (06:42 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 20 Dec 2000 06:42:09 +0000 (06:42 +0000)
* gnus-util.el (gnus-add-text-properties-when): In XEmacs,
text-property-not-all doesn't return nil when start=mark(end).
(gnus-remove-text-properties-when): Ditto.

lisp/ChangeLog
lisp/gnus-util.el

index 3463a35..cd14ec1 100644 (file)
@@ -1,3 +1,9 @@
+2000-12-20 01:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-util.el (gnus-add-text-properties-when): In XEmacs,
+       text-property-not-all doesn't return nil when start=mark(end).
+       (gnus-remove-text-properties-when): Ditto.
+
 2000-12-20 00:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus-start.el (gnus-group-change-level): Remove group from
index 9194c56..f6d3d6e 100644 (file)
@@ -995,6 +995,7 @@ Entries without port tokens default to DEFAULTPORT."
   "Like `gnus-add-text-properties', only applied on where PROPERTY is VALUE."
   (let (point)
     (while (and start 
+               (< start end) ;; XEmacs will loop for every when start=end.
                (setq point (text-property-not-all start end property value)))
       (gnus-add-text-properties start point properties object)
       (setq start (text-property-any point end property value)))
@@ -1006,6 +1007,7 @@ Entries without port tokens default to DEFAULTPORT."
   "Like `remove-text-properties', only applied on where PROPERTY is VALUE."
   (let (point)
     (while (and start 
+               (< start end)
                (setq point (text-property-not-all start end property value)))
       (remove-text-properties start point properties object)
       (setq start (text-property-any point end property value)))