]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/strings.texi (Text Comparison): Document 'string-greaterp'.
authorEli Zaretskii <eliz@gnu.org>
Sat, 16 Jan 2016 14:03:03 +0000 (16:03 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 16 Jan 2016 14:03:03 +0000 (16:03 +0200)
doc/lispref/strings.texi
etc/NEWS

index 95723ca448720f98d49093418c4fe4285266b87d..091db5e4ebb53471867bf3209abc15d8e73ab2b1 100644 (file)
@@ -571,13 +571,19 @@ no characters is less than any other string.
 @end example
 
 Symbols are also allowed as arguments, in which case their print names
-are used.
+are compared.
 @end defun
 
 @defun string-lessp string1 string2
 @code{string-lessp} is another name for @code{string<}.
 @end defun
 
+@defun string-greaterp string1 string2
+This function returns the result of comparing @var{string1} and
+@var{string2} in the opposite order, i.e., it is equivalent to calling
+@code{(string-lessp @var{string2} @var{string1})}.
+@end defun
+
 @cindex locale-dependent string comparison
 @defun string-collate-lessp string1 string2 &optional locale ignore-case
 This function returns @code{t} if @var{string1} is less than
index eac5b7e60f9ca98491fd4762cd23ff489344ccd4..3f867a0a9e8e162964da1490e120edc3191f225c 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1440,6 +1440,7 @@ evaluated (and should return a string) when the closure is built.
 *** x-get-selection-value is renamed to gui-get-primary-selection.
 *** x-set-selection is renamed to gui-set-selection
 
++++
 ** New function `string-greaterp', which return the opposite result of
 `string-lessp'.