From: Rüdiger Sonderfeld Date: Fri, 10 Jan 2014 17:54:32 +0000 (+0100) Subject: Revert "Document `subr-x' functions." X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b4256e8c52981cf8a9674fbadb81082f8d30c4c5;p=emacs.git Revert "Document `subr-x' functions." This reverts 2014-01-10T12:41:19Z!ruediger@c-plusplus.de. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 3a362c7daa5..2963ffc9a60 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,11 +1,3 @@ -2014-01-10 Rüdiger Sonderfeld - - * hash.texi (Hash Tables): Add cindex entry for `subr-x' - functions. - - * strings.texi (Creating Strings, Text Comparison): Document - functions from `subr-x'. - 2014-01-09 Rüdiger Sonderfeld * text.texi (Parsing HTML/XML): Document `shr-insert-document'. diff --git a/doc/lispref/hash.texi b/doc/lispref/hash.texi index 9d6302f4073..5d0d6b6c89e 100644 --- a/doc/lispref/hash.texi +++ b/doc/lispref/hash.texi @@ -354,7 +354,6 @@ This returns the rehash threshold of @var{table}. This returns the current nominal size of @var{table}. @end defun -@cindex Hash table functions in subr-x. The following two functions are provided by the @file{subr-x} library. To use them, you need to load this library first. diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index b6972ad9cc5..5c814b22b2d 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -365,83 +365,6 @@ The default value of @var{separators} for @code{split-string}. Its usual value is @w{@code{"[ \f\t\n\r\v]+"}}. @end defvar -@cindex String creation functions in subr-x - The following functions are provided by the @file{subr-x} library. -To use them, you need to load this library first. - -@defun string-join strings &optional separator -This joins all strings in @var{strings}. If the optional argument -@var{separator} is non-@code{nil} then its value is added between each -string. - -@example -(string-join '("foo" "bar")) - @result{} "foobar" -(string-join '("foo" "bar") ", ") - @result{} "foo, bar" -@end example -@end defun - -@defun string-reverse string -This function returns the reversed value of @var{string}. - -@example -(string-reverse "ung olleh") - @result{} "hello gnu" -@end example -@end defun - -@defun string-trim-left string -This function returns a string with all the leading whitespace removed -from @var{string}. Trailing whitespace are left. - -@example -(string-trim-left "\r\n\t abc ") - @result{} "abc " -@end example -@end defun - -@defun string-trim-right string -This function returns a string with all the trailing whitespace -removed from @var{string}. Leading whitespace are left. - -@example -(string-trim-left " abc ") - @result{} " abc" -@end example -@end defun - -@defun string-trim string -This function returns a string with all leading and trailing -whitespace from @var{string} removed. This has the same effect as -calling @code{string-trim-left} and @code{string-trim-right} on -@var{string}. -@end defun - -@defun string-remove-prefix prefix string -This removes the string @var{prefix} from the beginning of -@var{string} if present. - -@example -(string-remove-prefix "foo" "foobar") - @result{} "bar" -(string-remove-prefix "not" "foobar") - @result{} "foobar" -@end example -@end defun - -@defun string-remove-suffix suffix string -This removes the string @var{suffix} from the end of @var{string} if -present. - -@example -(string-remove-suffix "bar" "foobar") - @result{} "foo" -(string-remove-suffix "not" "foobar") - @result{} "foobar" -@end example -@end defun - @node Modifying Strings @section Modifying Strings @@ -648,20 +571,6 @@ function @code{string-match}, which matches a regular expression against a string, can be used for a kind of string comparison; see @ref{Regexp Search}. -@cindex String comparisson functions in subr-x - The following functions are provided by the @file{subr-x} library. -To use them, you need to load this library first. - -@defun string-empty-p string -This function returns non-@code{nil} if @var{string} is an empty -string. -@end defun - -@defun string-blank-p string -This function returns non-@code{nil} if @var{string} is either empty -or only whitespace. -@end defun - @node String Conversion @section Conversion of Characters and Strings @cindex conversion of strings diff --git a/etc/NEWS b/etc/NEWS index 26574a11e54..c8088e17bbe 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1099,10 +1099,12 @@ displaying the buffer in a window. +++ ** New macro with-eval-after-load. Like eval-after-load, but better behaved. -+++ ** New library subr-x.el for misc helper functions ++++ *** `hash-table-keys' ++++ *** `hash-table-values' +--- *** `string-blank-p` *** `string-empty-p` *** `string-join`