[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Proposal: references from code to text.
From: |
Eric S Fraga |
Subject: |
Re: [O] Proposal: references from code to text. |
Date: |
Mon, 14 May 2018 18:11:30 +0100 |
... continued ...
although I found a strange bug in the tangling and noweb syntax. I
didn't want to have quotes in the text so I removed them and put them in
the lisp src block instead:
#+begin_src org
,#+NAME: ADD
,#+BEGIN_SRC emacs-lisp -n -r :noweb yes :tangle test.el
(defun add (x y)
"<<DOC-OF-ADD>>" ;; code to code
(+ x y) (ref:add)
)
,#+END_SRC
#+end_src
which when exported or tangled resulted in some strange quoting:
#+begin_src emacs-lisp
(defun add (x y)
"
"We use the function add to calculate the sum of two numbers." ;; code to
code
(+ x y)
)
#+end_src
I'm probably not supposed to put a <<...>> link within quotes but the
output is surprising in any case.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-591-gee336b
signature.asc
Description: PGP signature
- [O] Proposal: references from code to text., ZHUO QL (KDr2), 2018/05/12
- Re: [O] Proposal: references from code to text., Eric S Fraga, 2018/05/14
- Re: [O] Proposal: references from code to text., John Kitchin, 2018/05/14
- Re: [O] Proposal: references from code to text., Eric S Fraga, 2018/05/14
- Re: [O] Proposal: references from code to text.,
Eric S Fraga <=
- Re: [O] Proposal: references from code to text., ZHUO QL (KDr2), 2018/05/15
- Re: [O] Proposal: references from code to text., Eric S Fraga, 2018/05/15
- Re: [O] Proposal: references from code to text., ZHUO QL (KDr2), 2018/05/16
- Re: [O] Proposal: references from code to text., John Kitchin, 2018/05/16
- Re: [O] Proposal: references from code to text., Samuel Wales, 2018/05/16
- Re: [O] Proposal: references from code to text., John Kitchin, 2018/05/16
- Re: [O] Proposal: references from code to text., Samuel Wales, 2018/05/16
- Re: [O] Proposal: references from code to text., ZHUO QL (KDr2), 2018/05/16
- Re: [O] Proposal: references from code to text., John Kitchin, 2018/05/16
- Re: [O] Proposal: references from code to text., ZHUO QL (KDr2), 2018/05/17