emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4051fa3: Clarify what counts as whitespace in `stri


From: Mattias Engdegård
Subject: [Emacs-diffs] master 4051fa3: Clarify what counts as whitespace in `string-blank-p'
Date: Sun, 1 Sep 2019 08:28:48 -0400 (EDT)

branch: master
commit 4051fa3ba9b4527b57b4cd114ddaaf72a3b23528
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>

    Clarify what counts as whitespace in `string-blank-p'
    
    * lisp/emacs-lisp/subr-x.el (string-blank-p): Expand doc string.
---
 lisp/emacs-lisp/subr-x.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index f76409c..bb2bf3d 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]