emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/prop-search a2e11f7: Make the VALUE and PREDICATE


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] scratch/prop-search a2e11f7: Make the VALUE and PREDICATE optional
Date: Mon, 16 Apr 2018 14:28:32 -0400 (EDT)

branch: scratch/prop-search
commit a2e11f79a3e8ecc837891d6ceb1b86a713bb0501
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Make the VALUE and PREDICATE optional
---
 doc/lispref/text.texi     | 2 +-
 lisp/emacs-lisp/subr-x.el | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 776766b..f4c91d2 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -3180,7 +3180,7 @@ buffer to scan.  Positions are relative to @var{object}.  
The default
 for @var{object} is the current buffer.
 @end defun
 
address@hidden text-property-search-forward prop value predicate
address@hidden text-property-search-forward prop &optional value predicate
 Search for the next region that has text property @var{prop} set to
 @var{value} according to @var{predicate}.
 
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index 6f37299..c5a3e8f 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -256,7 +256,7 @@ TRIM-LEFT and TRIM-RIGHT default to \"[ \\t\\n\\r]+\"."
 (cl-defstruct (prop-match)
   beginning end value)
 
-(defun text-property-search-forward (property value predicate)
+(defun text-property-search-forward (property &optional value predicate)
   "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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]