diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-24 09:22:40 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-03-24 09:22:44 +0100 |
commit | a4ececf004e5442fc245ccff910000fe407f7212 (patch) | |
tree | 2e7a3a7e9c290db7382dd5c6093a15db74f47310 /lisp/emacs-lisp/shortdoc.el | |
parent | c0d24d5316626a3d5e76f99a0f418463cb355459 (diff) | |
download | emacs-a4ececf004e5442fc245ccff910000fe407f7212.tar.gz emacs-a4ececf004e5442fc245ccff910000fe407f7212.tar.bz2 emacs-a4ececf004e5442fc245ccff910000fe407f7212.zip |
Move string-trim functions to subr.el
* doc/lispref/strings.texi (Creating Strings): Document them.
* lisp/faces.el: Don't require subr-x, because that leads to build
errors.
* lisp/subr.el (string-trim, string-trim-right)
(string-trim-left): Move here from subr-x.el.
* lisp/emacs-lisp/shortdoc.el (string): Adjust.
Diffstat (limited to 'lisp/emacs-lisp/shortdoc.el')
-rw-r--r-- | lisp/emacs-lisp/shortdoc.el | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 789d6325e9a..86d5130bbed 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -168,15 +168,12 @@ There can be any number of :example/:result elements." (replace-regexp-in-string :eval (replace-regexp-in-string "[a-z]+" "_" "*foo*")) (string-trim - :no-manual t :args (string) :doc "Trim STRING of leading and trailing white space." :eval (string-trim " foo ")) (string-trim-left - :no-manual t :eval (string-trim-left "oofoo" "o+")) (string-trim-right - :no-manual t :eval (string-trim-right "barkss" "s+")) (string-truncate-left :no-manual t |