From f8edfc9fb358a0b71cfcab73a1222ec4a8b03cb1 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 26 Feb 2015 15:14:40 +0100 Subject: [PATCH] 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 --- lisp/org-macs.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 78174df38..4779583d8 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) -- 2.11.4.GIT