summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2015-02-26 15:14:40 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-02-26 15:14:40 +0100
commitf8edfc9fb358a0b71cfcab73a1222ec4a8b03cb1 (patch)
tree2f12215971f9dacdd7ce98b80264df075b9d2baf
parentc1da4d01a99c5fff881f8de216e6e3211b48f3ee (diff)
downloadorg-mode-f8edfc9fb358a0b71cfcab73a1222ec4a8b03cb1.tar.gz
org-macs: Fix `org-string-nw-p'
* lisp/org-macs.el (org-string-nw-p): Return value doesn't depend anymore on the current syntax table. Reported-by: Rasmus Rasmus <rasmus@gmx.us> <http://permalink.gmane.org/gmane.emacs.orgmode/95467>
-rw-r--r--lisp/org-macs.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 78174df..4779583 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -71,9 +71,10 @@
(def-edebug-spec org-bound-and-true-p (symbolp))
(defun org-string-nw-p (s)
- "Is S a string with a non-white character?"
+ "Return S if S is a string containing a non-blank character.
+Otherwise, return nil."
(and (stringp s)
- (org-string-match-p "\\S-" s)
+ (org-string-match-p "[^ \r\t\n]" s)
s))
(defun org-not-nil (v)