From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Proposal: references from code to text. Date: Mon, 14 May 2018 18:11:30 +0100 Message-ID: <8736yu2md9.fsf@ucl.ac.uk> References: <800808596.465327.1526131788117.ref@mail.yahoo.com> <800808596.465327.1526131788117@mail.yahoo.com> <871seebxdt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIH0b-00067Q-OW for emacs-orgmode@gnu.org; Mon, 14 May 2018 13:11:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIH0X-0000f9-ES for emacs-orgmode@gnu.org; Mon, 14 May 2018 13:11:37 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:39829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIH0X-0000dr-8N for emacs-orgmode@gnu.org; Mon, 14 May 2018 13:11:33 -0400 Received: by mail-wm0-x231.google.com with SMTP id f8-v6so16632102wmc.4 for ; Mon, 14 May 2018 10:11:33 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: John Kitchin Cc: "ZHUO QL (KDr2)" , org-mode-email --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable ... 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) "<>" ;; 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)=20 ) #+end_src I'm probably not supposed to put a <<...>> link within quotes but the output is surprising in any case. =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-591-gee336b --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWvnDQgAKCRDIkZPY//z2 feXjAJ9j7NAye40M4lFYaeXM8gCcHLpehgCfYfbSaAbgGEV/1YWOtej2PRPh13o= =Z+JL -----END PGP SIGNATURE----- --=-=-=--