aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lispref/ChangeLog8
-rw-r--r--lispref/text.texi35
2 files changed, 36 insertions, 7 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 00da383272a..9aa36711064 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,11 @@
12001-10-02 Miles Bader <miles@gnu.org>
2
3 * text.texi (Property Search): Correct descriptions of
4 `next-char-property-change' and `previous-char-property-change'.
5 Add entries for `next-single-char-property-change' and
6 `previous-single-char-property-change'.
7 Make operand names a bit more consistent.
8
12001-09-30 Eli Zaretskii <eliz@is.elta.co.il> 92001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2 10
3 * frames.texi (Finding All Frames): Document that next-frame and 11 * frames.texi (Finding All Frames): Document that next-frame and
diff --git a/lispref/text.texi b/lispref/text.texi
index 1b44d72d472..5cbc381e7d9 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -1,6 +1,6 @@
1@c -*-texinfo-*- 1@c -*-texinfo-*-
2@c This is part of the GNU Emacs Lisp Reference Manual. 2@c This is part of the GNU Emacs Lisp Reference Manual.
3@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000 3@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001
4@c Free Software Foundation, Inc. 4@c Free Software Foundation, Inc.
5@c See the file elisp.texi for copying conditions. 5@c See the file elisp.texi for copying conditions.
6@setfilename ../info/text 6@setfilename ../info/text
@@ -2550,16 +2550,37 @@ position less than or equal to @var{pos}; it equals @var{pos} only if
2550@var{limit} equals @var{pos}. 2550@var{limit} equals @var{pos}.
2551@end defun 2551@end defun
2552 2552
2553@defun next-char-property-change position &optional limit 2553@defun next-char-property-change pos &optional limit
2554This is like @code{next-property-change} except that it considers 2554This is like @code{next-property-change} except that it considers
2555overlay properties as well as text properties. There is no @var{object} 2555overlay properties as well as text properties, and if no change is
2556operand because this function operates only on the current buffer. It 2556found before the end of the buffer, it returns the maximum buffer
2557returns the next address at which either kind of property changes. 2557position rather than @code{nil} (in this sense, it resembles the
2558corresponding overlay function @code{next-overlay-change}, rather than
2559@code{next-property-change}). There is no @var{object} operand
2560because this function operates only on the current buffer. It returns
2561the next address at which either kind of property changes.
2558@end defun 2562@end defun
2559 2563
2560@defun previous-char-property-change position &optional limit 2564@defun previous-char-property-change pos &optional limit
2561This is like @code{next-char-property-change}, but scans back from 2565This is like @code{next-char-property-change}, but scans back from
2562@var{position} instead of forward. 2566@var{pos} instead of forward, and returns the minimum buffer
2567position if no change is found.
2568@end defun
2569
2570@defun next-single-char-property-change pos prop &optional object limit
2571This is like @code{next-single-property-change} except that it
2572considers overlay properties as well as text properties, and if no
2573change is found before the end of the @var{object}, it returns the
2574maximum valid position in @var{object} rather than @code{nil}. Unlike
2575@code{next-char-property-change}, this function @emph{does} have an
2576@var{object} operand; if @var{object} is not a buffer, only
2577text-properties are considered.
2578@end defun
2579
2580@defun previous-single-char-property-change pos prop &optional object limit
2581This is like @code{next-single-char-property-change}, but scans back
2582from @var{pos} instead of forward, and returns the minimum valid
2583position in @var{object} if no change is found.
2563@end defun 2584@end defun
2564 2585
2565@defun text-property-any start end prop value &optional object 2586@defun text-property-any start end prop value &optional object