]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
authorBozhidar Batsov <bozhidar@batsov.com>
Sat, 7 Dec 2013 18:46:03 +0000 (20:46 +0200)
committerBozhidar Batsov <bozhidar@batsov.com>
Sat, 7 Dec 2013 18:46:03 +0000 (20:46 +0200)
lisp/ChangeLog
lisp/emacs-lisp/helpers.el

index d032e3c9243cf9b1dd6392f418a5a5c3425a6488..17d7c0bdd3458b444920f2caaf5ee4fed06ae5e6 100644 (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
index 8049f4e1d1dc35b2a9b6be92d7f85ddceb3b8c8c..b7996ade777562067d1bcec983031722ca62c6cf 100644 (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)