Clarify what counts as whitespace in `string-blank-p'
* lisp/emacs-lisp/subr-x.el (string-blank-p): Expand doc string.
This commit is contained in:
parent
e8c46c2b6f
commit
4051fa3ba9
1 changed files with 3 additions and 1 deletions
|
@ -236,7 +236,9 @@ TRIM-LEFT and TRIM-RIGHT default to \"[ \\t\\n\\r]+\"."
|
|||
(string-trim-left (string-trim-right string trim-right) trim-left))
|
||||
|
||||
(defsubst string-blank-p (string)
|
||||
"Check whether STRING is either empty or only whitespace."
|
||||
"Check whether STRING is either empty or only whitespace.
|
||||
The following characters count as whitespace here: space, tab, newline and
|
||||
carriage return."
|
||||
(string-match-p "\\`[ \t\n\r]*\\'" string))
|
||||
|
||||
(defsubst string-remove-prefix (prefix string)
|
||||
|
|
Loading…
Add table
Reference in a new issue