X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Ftext-props.el;h=4c30905103bdda3517e0de62d09ad503e272c38b;hb=350377a73a4bdab4a3e82498532eb2cddde5e4cf;hp=e08bbbc6aba601ca2a36a0c8ca194c59ca13f713;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/text-props.el b/lisp/text-props.el index e08bbbc..4c30905 100644 --- a/lisp/text-props.el +++ b/lisp/text-props.el @@ -4,7 +4,7 @@ ;; Copyright (C) 1995 Amdahl Corporation. ;; Copyright (C) 1995 Ben Wing. -;; Author: Jamie Zawinski +;; Author: Jamie Zawinski ;; Maintainer: XEmacs Development Team ;; Keywords: extensions, wp, faces, dumped @@ -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