diff options
author | Bastien Guerry <bastien1@free.fr> | 2012-04-01 11:49:25 +0200 |
---|---|---|
committer | Bastien Guerry <bastien1@free.fr> | 2012-04-01 11:49:25 +0200 |
commit | 153ae947f845f6d4f31d3d239a1449899c3384f0 (patch) | |
tree | b7ef6c7f4b94f4a4ee19eecd079c36aff84bddc5 /lisp/org/ob-tangle.el | |
parent | 42ee526b1adbe2ba7766203980a9d7089aae1a68 (diff) | |
download | emacs-153ae947f845f6d4f31d3d239a1449899c3384f0.tar.gz |
Update to Org version 7.8.07 (commit da0e6f in Org's repo)
Diffstat (limited to 'lisp/org/ob-tangle.el')
-rw-r--r-- | lisp/org/ob-tangle.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/org/ob-tangle.el b/lisp/org/ob-tangle.el index 0b4eaf1fafa..5e498ab6c0c 100644 --- a/lisp/org/ob-tangle.el +++ b/lisp/org/ob-tangle.el @@ -185,9 +185,11 @@ exported source code blocks by language." (when only-this-block (unless (org-babel-where-is-src-block-head) (error "Point is not currently inside of a code block")) - (unless target-file - (setq target-file - (read-from-minibuffer "Tangle to: " (buffer-file-name)))) + (save-match-data + (unless (or (cdr (assoc :tangle (nth 2 (org-babel-get-src-block-info)))) + target-file) + (setq target-file + (read-from-minibuffer "Tangle to: " (buffer-file-name))))) (narrow-to-region (match-beginning 0) (match-end 0))) (save-excursion (let ((block-counter 0) @@ -393,7 +395,7 @@ form (start-line file link source-name params body comment)" (let* ((start-line (nth 0 spec)) (file (nth 1 spec)) - (link (org-link-escape (nth 2 spec))) + (link (nth 2 spec)) (source-name (nth 3 spec)) (body (nth 5 spec)) (comment (nth 6 spec)) |