emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-auto-tangle 7bd6e9c934 38/56: improve the regex used t


From: ELPA Syncer
Subject: [nongnu] elpa/org-auto-tangle 7bd6e9c934 38/56: improve the regex used to parse for the #+auto_tangle: option
Date: Mon, 6 Jun 2022 11:58:54 -0400 (EDT)

branch: elpa/org-auto-tangle
commit 7bd6e9c934bc659b026b0d1497b2013da44597d8
Author: lispy-dobby <yilkalargawworkneh@gmail.com>
Commit: GitHub <noreply@github.com>

    improve the regex used to parse for the #+auto_tangle: option
    
    again based on the recommendation by @riscy
---
 org-auto-tangle.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-auto-tangle.el b/org-auto-tangle.el
index 6402ea7c25..03bb0190db 100644
--- a/org-auto-tangle.el
+++ b/org-auto-tangle.el
@@ -56,7 +56,7 @@
       (widen)
       (save-excursion
        (goto-char (point-min))
-       (when (re-search-forward "^#\\+auto_tangle: \\(.*\\)" nil :noerror)
+       (when (re-search-forward "^#\\+auto_tangle:[ \t]+\\([^ \f\t\n\r\v]+\\)[ 
\t]*" nil :noerror)
          (match-string 1))))))
 
 (defun org-auto-tangle-async (file)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]