diff options
| author | Glenn Morris | 2012-03-21 23:21:28 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-03-21 23:21:28 -0700 |
| commit | c8f6ec5c01d213657dca733f58be5069cc7cf86a (patch) | |
| tree | 198c473985556a682cd6366f8c4fa5435a7fb18e | |
| parent | 0e85d2cf5498f18f902fab081634316f166589a6 (diff) | |
| download | emacs-c8f6ec5c01d213657dca733f58be5069cc7cf86a.tar.gz emacs-c8f6ec5c01d213657dca733f58be5069cc7cf86a.zip | |
Document string-prefix-p
* doc/lispref/strings.texi (Text Comparison): Mention string-prefix-p.
* etc/NEWS: Belated entry.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/strings.texi | 7 | ||||
| -rw-r--r-- | etc/NEWS | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 77468f562c6..1248ea15bcd 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-03-22 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * strings.texi (Text Comparison): Mention string-prefix-p. | ||
| 4 | |||
| 1 | 2012-03-21 Chong Yidong <cyd@gnu.org> | 5 | 2012-03-21 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * display.texi (The Echo Area): Add xref to Output Streams. | 7 | * display.texi (The Echo Area): Add xref to Output Streams. |
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 64d0986493a..7813283ade5 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi | |||
| @@ -508,6 +508,13 @@ are used. | |||
| 508 | @code{string-lessp} is another name for @code{string<}. | 508 | @code{string-lessp} is another name for @code{string<}. |
| 509 | @end defun | 509 | @end defun |
| 510 | 510 | ||
| 511 | @defun string-prefix-p string1 string2 &optional ignore-case | ||
| 512 | This function returns non-@code{nil} if @var{string1} is a prefix of | ||
| 513 | @var{string2}; i.e., if @var{string2} starts with @var{string1}. If | ||
| 514 | the optional argument @var{ignore-case} is non-@code{nil}, the | ||
| 515 | comparison ignores case differences. | ||
| 516 | @end defun | ||
| 517 | |||
| 511 | @defun compare-strings string1 start1 end1 string2 start2 end2 &optional ignore-case | 518 | @defun compare-strings string1 start1 end1 string2 start2 end2 &optional ignore-case |
| 512 | This function compares the specified part of @var{string1} with the | 519 | This function compares the specified part of @var{string1} with the |
| 513 | specified part of @var{string2}. The specified part of @var{string1} | 520 | specified part of @var{string2}. The specified part of @var{string1} |
| @@ -1548,6 +1548,10 @@ inherits from multiple maps, eg: | |||
| 1548 | (set-keymap-parent newmap (make-composed-keymap othermap parent)) | 1548 | (set-keymap-parent newmap (make-composed-keymap othermap parent)) |
| 1549 | 1549 | ||
| 1550 | +++ | 1550 | +++ |
| 1551 | ** New function `string-prefix-p'. | ||
| 1552 | (This was actually added in Emacs 23.2 but was not advertised at the time.) | ||
| 1553 | |||
| 1554 | +++ | ||
| 1551 | ** New reader macro ## that stands for the empty symbol. | 1555 | ** New reader macro ## that stands for the empty symbol. |
| 1552 | This means that the empty symbol can now be read back. Also, #: by itself | 1556 | This means that the empty symbol can now be read back. Also, #: by itself |
| 1553 | (when not immediately followed by a possible symbol character) stands for | 1557 | (when not immediately followed by a possible symbol character) stands for |