From: Juanma Barranquero Date: Mon, 23 Sep 2019 07:15:01 +0000 (+0200) Subject: Fix arg name of `text-property-search-{forward|backward}' (bug#37488) X-Git-Tag: emacs-27.0.90~1480 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e86db05fc836e708e1e0f791270c961160ca5d3;p=emacs.git Fix arg name of `text-property-search-{forward|backward}' (bug#37488) * lisp/emacs-lisp/text-property-search.el (text-property-search-forward, text-property-search-backward): Rename arg NOT-IMMEDIATE to NOT-CURRENT. Also fix docstring. --- diff --git a/lisp/emacs-lisp/text-property-search.el b/lisp/emacs-lisp/text-property-search.el index 41ca07057e0..5329c967e35 100644 --- a/lisp/emacs-lisp/text-property-search.el +++ b/lisp/emacs-lisp/text-property-search.el @@ -30,7 +30,7 @@ beginning end value) (defun text-property-search-forward (property &optional value predicate - not-immediate) + not-current) "Search for the next region that has text property PROPERTY set to VALUE. If not found, the return value is nil. If found, point will be placed at the end of the region and an object describing the @@ -45,7 +45,7 @@ means the same as `equal'. `nil' means almost the same as \"not equal\", but will also end the match if the value of PROPERTY changes. See the manual for extensive examples. -If `not-immediate', if the match is under point, it will not be +If NOT-CURRENT, if the match is under point, it will not be returned, but instead the next instance is returned, if any. The return value (if a match is made) is a `prop-match' @@ -66,7 +66,7 @@ at the start of the region)." ;; end. ((and (text-property--match-p value (get-text-property (point) property) predicate) - (not not-immediate)) + (not not-current)) (text-property--find-end-forward (point) property value predicate)) (t (let ((origin (point)) @@ -121,7 +121,7 @@ at the start of the region)." (defun text-property-search-backward (property &optional value predicate - not-immediate) + not-current) "Search for the previous region that has text property PROPERTY set to VALUE. See `text-property-search-forward' for further documentation." (interactive @@ -138,7 +138,7 @@ See `text-property-search-forward' for further documentation." ((and (text-property--match-p value (get-text-property (1- (point)) property) predicate) - (not not-immediate)) + (not not-current)) (text-property--find-end-backward (1- (point)) property value predicate)) (t (let ((origin (point))