From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: [feature] prepend comment char before org-babel-ref Date: Sun, 28 Jan 2018 17:52:13 +0800 Message-ID: References: <87mv13cr2w.fsf@nicolasgoaziou.fr> <87zi51snce.fsf@nicolasgoaziou.fr> <87a7wztvri.fsf@nicolasgoaziou.fr> <87607ntvos.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0ce4ba54f0b60563d317ff" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efjdm-0005CW-RQ for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 04:52:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efjdl-0004R1-M1 for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 04:52:46 -0500 Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:41643) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efjdl-0004Ql-H8 for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 04:52:45 -0500 Received: by mail-oi0-x22a.google.com with SMTP id m83so3054299oik.8 for ; Sun, 28 Jan 2018 01:52:44 -0800 (PST) In-Reply-To: <87607ntvos.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org-mode --94eb2c0ce4ba54f0b60563d317ff Content-Type: text/plain; charset="UTF-8" Thanks. @Nicolas [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Sat, Jan 27, 2018 at 6:58 PM, Nicolas Goaziou wrote: > Nicolas Goaziou writes: > > > Hello, > > > > "numbchild@gmail.com" writes: > > > >> Because it is not good for tangling. > >> For example, tangle the bellowing src block, the tangled source code > file > >> will has `(ref:hello)` too. > >> ``` > >> > >> #+begin_src emacs-lisp :tangle "data/code/src-coderef.el" > >> (message "hello, world") (ref:hello) > >> #+end_src > > > > You need to add "-r" switch so Org knows you want to remove coderefs: > > > > #+begin_src emacs-lisp :tangle "data/code/src-coderef.el" > > (message "hello, world") (ref:hello) > > #+end_src > > I meant > > #+begin_src emacs-lisp -r :tangle "data/code/src-coderef.el" > ^^^^ > --94eb2c0ce4ba54f0b60563d317ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. @Nicolas

[stardiviner]= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this = world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeen= ode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @n= umbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8= E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sat, Jan 27, 2018 at 6:58 PM, Nicolas Goa= ziou <mail@nicolasgoaziou.fr> wrote:
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> "numbchild@gmail.com&q= uot; <numbchild@gmail.com>= writes:
>
>> Because it is not good for tangling.
>> For example, tangle the bellowing src block, the tangled source co= de file
>> will has `(ref:hello)` too.
>> ```
>>
>> #+begin_src emacs-lisp :tangle "data/code/src-coderef.el"= ;
>> (message "hello, world") (ref:hello)
>> #+end_src
>
> You need to add "-r" switch so Org knows you want to remove = coderefs:
>
>=C2=A0 =C2=A0#+begin_src emacs-lisp :tangle "data/code/src-coderef= .el"
>=C2=A0 =C2=A0(message "hello, world") (ref:hello)
>=C2=A0 =C2=A0#+end_src

I meant

=C2=A0 #+begin_src emacs-lisp -r :tangle "data/code/src-coderef.el&quo= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ^^^^

--94eb2c0ce4ba54f0b60563d317ff--