From: Bozhidar Batsov Date: Sat, 7 Dec 2013 18:46:03 +0000 (+0200) Subject: * lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~524 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=73c8ceea1ab335aae9221a671ae0959704669a52;p=emacs.git * lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d032e3c9243..17d7c0bdd34 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-12-07 Bozhidar Batsov + + * emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'. + 2013-12-07 Tassilo Horn * 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 @@ (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)