branch: elpa/org-auto-tangle
commit dc7eb11e6ae657beb6e99734067737e4fd1476a5
Merge: be9007a23a cebc4bbf73
Author: lispy-dobby <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #7 from zzamboni/master
Improve auto_tangle regex
---
org-auto-tangle.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org-auto-tangle.el b/org-auto-tangle.el
index 79eaf9806f..e12c1ccea9 100644
--- a/org-auto-tangle.el
+++ b/org-auto-tangle.el
@@ -62,8 +62,8 @@ all Org buffers unless `#+auto_tangle: nil' is set.")
(widen)
(save-excursion
(goto-char (point-min))
- (when (re-search-forward "^#\\+auto_tangle: \\(.*\\)" nil :noerror)
- (match-string 1))))))
+ (when (re-search-forward (org-make-options-regexp '("auto_tangle")) nil
:noerror)
+ (match-string 2))))))
(defun org-auto-tangle-async (file)
"Invoke `org-babel-tangle-file' asynchronously on FILE."