[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115411: * lisp/emacs-lisp/helpers.el (string-blank-
From: |
Bozhidar Batsov |
Subject: |
[Emacs-diffs] trunk r115411: * lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'. |
Date: |
Sat, 07 Dec 2013 18:47:07 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115411
revision-id: address@hidden
parent: address@hidden
committer: Bozhidar Batsov <address@hidden>
branch nick: master
timestamp: Sat 2013-12-07 20:46:03 +0200
message:
* lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/emacs-lisp/helpers.el helpers.el-20131104130751-8dd4wji5crsqfatf-1
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-12-07 17:05:38 +0000
+++ b/lisp/ChangeLog 2013-12-07 18:46:03 +0000
@@ -1,3 +1,7 @@
+2013-12-07 Bozhidar Batsov <address@hidden>
+
+ * emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.
+
2013-12-07 Tassilo Horn <address@hidden>
* help-fns.el (describe-function-1): Use new advice-* functions
=== modified file 'lisp/emacs-lisp/helpers.el'
--- a/lisp/emacs-lisp/helpers.el 2013-11-29 16:51:44 +0000
+++ b/lisp/emacs-lisp/helpers.el 2013-12-07 18:46:03 +0000
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r115411: * lisp/emacs-lisp/helpers.el (string-blank-p): Use `string-match-p'.,
Bozhidar Batsov <=