forked from mirrors/org-mode
This was just an idea. We could do it but I'm reverting for now.
Revert "Make org-babel-tangle comment with ;;*."
This reverts commit c6b628d3ad
.
This commit is contained in:
parent
b15beb63d2
commit
83fc113e29
|
@ -144,14 +144,13 @@ assumes that the appropriate major-mode is set. SPEC has the
|
||||||
form
|
form
|
||||||
|
|
||||||
(link source-name params body)"
|
(link source-name params body)"
|
||||||
(let ((link (first spec))
|
|
||||||
(source-name (second spec))
|
|
||||||
(body (fourth spec))
|
|
||||||
(comment-padding "* "))
|
|
||||||
(flet ((insert-comment (text)
|
(flet ((insert-comment (text)
|
||||||
(comment-region (point) (progn (insert text) (point)))))
|
(comment-region (point) (progn (insert text) (point)))))
|
||||||
|
(let ((link (first spec))
|
||||||
|
(source-name (second spec))
|
||||||
|
(body (fourth spec)))
|
||||||
(insert "\n\n")
|
(insert "\n\n")
|
||||||
(insert-comment (format "* [[%s][%s]]" (org-link-escape link) source-name))
|
(insert-comment (format "[[%s][%s]]" (org-link-escape link) source-name))
|
||||||
(insert (format "\n%s\n" (org-babel-chomp body)))
|
(insert (format "\n%s\n" (org-babel-chomp body)))
|
||||||
(insert-comment (format "%s ends here" source-name))
|
(insert-comment (format "%s ends here" source-name))
|
||||||
(insert "\n"))))
|
(insert "\n"))))
|
||||||
|
|
Loading…
Reference in a new issue