X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lisp%2Ftext-props.el;h=4c30905103bdda3517e0de62d09ad503e272c38b;hp=0e1baebc7102588112899ee9a8ebbb5aa304dfe6;hb=52b3dd1157cecb0f190b11a0874fcb0a5df5e0e2;hpb=afa9772e3fcbb4e80e3e4cfd1a40b4fccc6d08b8 diff --git a/lisp/text-props.el b/lisp/text-props.el index 0e1baeb..4c30905 100644 --- a/lisp/text-props.el +++ b/lisp/text-props.el @@ -234,7 +234,7 @@ containing the text and defaults to the current buffer." (setq start (next-single-property-change start prop buffer-or-string end))) ;; we have to insert a special check for end due to the illogical ;; definition of next-single-property-change (blame FSF for this). - (if (eq start end) nil start)) + (if (and start (>= start end)) nil start)) (defun text-property-not-all (start end prop value &optional buffer-or-string) "Check text from START to END to see if PROP is ever not `eq' to VALUE. @@ -248,7 +248,7 @@ containing the text and defaults to the current buffer." buffer-or-string end))) ;; we have to insert a special check for end due to the illogical ;; definition of previous-single-property-change (blame FSF for this). - (if (eq retval end) nil retval)))) + (if (and retval (>= retval end)) nil retval)))) ;; Older versions that only work sometimes (when VALUE is non-nil ;; for text-property-any, and maybe only when VALUE is nil for