1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

* lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.

This commit is contained in:
Bozhidar Batsov 2013-12-07 20:46:03 +02:00
parent 947003b598
commit 73c8ceea1a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-12-07 Bozhidar Batsov <bozhidar@batsov.com>
* emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
2013-12-07 Tassilo Horn <tsdh@gnu.org>
* help-fns.el (describe-function-1): Use new advice-* functions

View File

@ -67,7 +67,7 @@
(defsubst string-blank-p (string)
"Check whether STRING is either empty or only whitespace."
(string-empty-p (string-trim string)))
(string-match-p "\\`[ \t\n\r]*\\'" string))
(provide 'helpers)