Skip to content

Commit dc7eb11

Browse files
authored
Merge pull request #7 from zzamboni/master
Improve auto_tangle regex
2 parents be9007a + cebc4bb commit dc7eb11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org-auto-tangle.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ all Org buffers unless `#+auto_tangle: nil' is set.")
6262
(widen)
6363
(save-excursion
6464
(goto-char (point-min))
65-
(when (re-search-forward "^#\\+auto_tangle: \\(.*\\)" nil :noerror)
66-
(match-string 1))))))
65+
(when (re-search-forward (org-make-options-regexp '("auto_tangle")) nil :noerror)
66+
(match-string 2))))))
6767

6868
(defun org-auto-tangle-async (file)
6969
"Invoke `org-babel-tangle-file' asynchronously on FILE."

0 commit comments

Comments
 (0)