aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBozhidar Batsov2013-12-07 20:46:03 +0200
committerBozhidar Batsov2013-12-07 20:46:03 +0200
commit73c8ceea1ab335aae9221a671ae0959704669a52 (patch)
treebc67ee16e106ee1c830fd490d252df19ea997ea9
parent947003b598285cf9cbc4878524167cd98d718994 (diff)
downloademacs-73c8ceea1ab335aae9221a671ae0959704669a52.tar.gz
emacs-73c8ceea1ab335aae9221a671ae0959704669a52.zip
* lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/emacs-lisp/helpers.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d032e3c9243..17d7c0bdd34 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-12-07 Bozhidar Batsov <bozhidar@batsov.com>
2
3 * emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
4
12013-12-07 Tassilo Horn <tsdh@gnu.org> 52013-12-07 Tassilo Horn <tsdh@gnu.org>
2 6
3 * help-fns.el (describe-function-1): Use new advice-* functions 7 * help-fns.el (describe-function-1): Use new advice-* functions
diff --git a/lisp/emacs-lisp/helpers.el b/lisp/emacs-lisp/helpers.el
index 8049f4e1d1d..b7996ade777 100644
--- a/lisp/emacs-lisp/helpers.el
+++ b/lisp/emacs-lisp/helpers.el
@@ -67,7 +67,7 @@
67 67
68(defsubst string-blank-p (string) 68(defsubst string-blank-p (string)
69 "Check whether STRING is either empty or only whitespace." 69 "Check whether STRING is either empty or only whitespace."
70 (string-empty-p (string-trim string))) 70 (string-match-p "\\`[ \t\n\r]*\\'" string))
71 71
72(provide 'helpers) 72(provide 'helpers)
73 73