From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [feature] prepend comment char before org-babel-ref Date: Sat, 27 Jan 2018 11:56:49 +0100 Message-ID: <87a7wztvri.fsf@nicolasgoaziou.fr> References: <87mv13cr2w.fsf@nicolasgoaziou.fr> <87zi51snce.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efOAJ-0007oK-9s for emacs-orgmode@gnu.org; Sat, 27 Jan 2018 05:56:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efOAI-0000Lz-JS for emacs-orgmode@gnu.org; Sat, 27 Jan 2018 05:56:55 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:51806) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1efOAI-0000LM-Da for emacs-orgmode@gnu.org; Sat, 27 Jan 2018 05:56:54 -0500 In-Reply-To: (numbchild@gmail.com's message of "Fri, 26 Jan 2018 20:34:14 +0800") 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: "numbchild@gmail.com" Cc: Org-mode 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 Regards, -- Nicolas Goaziou 0x80A93738