From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Org babel tangle: Don't export code Date: Tue, 24 Sep 2019 19:46:54 -0500 Message-ID: References: <87o8z9qony.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b1d46b059355fd9e" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCvSX-0004P8-3n for emacs-orgmode@gnu.org; Tue, 24 Sep 2019 20:47:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCvSQ-0003Ol-OZ for emacs-orgmode@gnu.org; Tue, 24 Sep 2019 20:47:07 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:40851) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCvSQ-0003OK-87 for emacs-orgmode@gnu.org; Tue, 24 Sep 2019 20:47:02 -0400 Received: by mail-io1-xd30.google.com with SMTP id h144so9119114iof.7 for ; Tue, 24 Sep 2019 17:47:02 -0700 (PDT) In-Reply-To: <87o8z9qony.fsf@gmail.com> 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: Tim Cross Cc: emacs-orgmode --000000000000b1d46b059355fd9e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Tim - I wanted to ask the list -- what does " By default, Org does not tangle the =E2=80=98src=E2=80=99 code block on exp= ort." mean in this web page:https://orgmode.org/manual/Extracting-source-code.html I mean, I have all of my begin_src emacs-lisp blocks with no explicit :tangle yesand they all are exported to the resulting *.el file. What does the above statement mean? On Tue, Sep 24, 2019 at 6:14 PM Tim Cross wrote: > > I just put :tangle no in the block header e.g. > > #+begin_src emacs-lisp :tangle no > > #+end_src > > This is how I turn off or remove blocks from my .emacs.d/init.el file, > which is tangled from an or file. You can also put a filename. This is > what I do for Emacs 27, which introduces the early-init.el file i.e. > > #+begin_src emacs-lisp :tangle early-init.el > > #+end_src > > #+begin_src emacs-lisp :tangle init.el > > #+end_src > > Nathan Neff writes: > > > Hello all, > > > > I use *.org files to configure my emacs and use org-babel-load-file > > to configure my org-mode using *.org files. Love the feature. > > > > However sometimes I'm experimenting with code blocks, and want to simpl= y > > "turn off" certain code blocks in my *.org files from being executed. > > Every time > > I go to do this, I search the web for 30-60 minutes and I'm frustrated > and > > confused by > > the myriad options and documentation. > > > > All I want to do is mark a source code block in my *.org files so that > the > > particular code block is: > > > > 1) Not exported to the resulting .el file when tangling > > Or > > 2) Not ran in the resulting .el files when tangling > > > > I recently spent 30 minutes to an hour trying to figure out how to simp= ly > > "disable" or "prevent" or "exclude" or "quit" or "don't" or "stop" or > > "please don't do this" > > to a code block in my *.org files. I don't want to mark the code block > as > > "text", unless there's really no other option. > > > > In my opinion, the documentation does not simply define how to do this > > relatively common task. > > > > Can someone please point me in the right direction? Also I would be > > willing to submit a doc-fix or FAQ item if there is currently not an it= em > > to do so. I'm lost and do not want to spend more time on this seemingl= y > > easy task. > > > > Thanks, > > --Nate > > > -- > Tim Cross > > --000000000000b1d46b059355fd9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Tim - I wanted to ask the list -- what does "<= br>

By default, Org does not tangle the =E2=80=98src=E2= =80=99 code block on export." mean in

this web page:
<= dd>https= ://orgmode.org/manual/Extracting-source-code.html

= I mean, I have all of my begin_src emacs-lisp blocks with no explicit :tang= le yes
and they all are exported to the resulting *.el file.=C2=A0 = What does the above statement mean?


On Tue, Sep 24, 2019= at 6:14 PM Tim Cross <theophil= usx@gmail.com> wrote:

I just put :tangle no in the block header e.g.

#+begin_src emacs-lisp :tangle no

#+end_src

This is how I turn off or remove blocks from my .emacs.d/init.el file,
which is tangled from an or file. You can also put a filename. This is
what I do for Emacs 27, which introduces the early-init.el file i.e.

#+begin_src emacs-lisp :tangle early-init.el

#+end_src

#+begin_src emacs-lisp :tangle init.el

#+end_src

Nathan Neff <= nathan.neff@gmail.com> writes:

> Hello all,
>
> I use *.org files to configure my emacs and use org-babel-load-file > to configure my org-mode using *.org files.=C2=A0 Love the feature. >
> However sometimes I'm experimenting with code blocks, and want to = simply
> "turn off" certain code blocks in my *.org files from being = executed.
> Every time
> I go to do this, I search the web for 30-60 minutes and I'm frustr= ated and
> confused by
> the myriad options and documentation.
>
> All I want to do is mark a source code block in my *.org files so that= the
> particular code block is:
>
> 1) Not exported to the resulting .el file when tangling
> Or
> 2) Not ran in the resulting .el files when tangling
>
> I recently spent 30 minutes to an hour trying to figure out how to sim= ply
> "disable" or "prevent" or "exclude" or &= quot;quit" or "don't" or "stop" or
> "please don't do this"
> to a code block in my *.org files.=C2=A0 I don't want to mark the = code block as
> "text", unless there's really no other option.
>
> In my opinion, the documentation does not simply define how to do this=
> relatively common task.
>
> Can someone please point me in the right direction?=C2=A0 Also I would= be
> willing to submit a doc-fix or FAQ item if there is currently not an i= tem
> to do so.=C2=A0 I'm lost and do not want to spend more time on thi= s seemingly
> easy task.
>
> Thanks,
> --Nate


--
Tim Cross

--000000000000b1d46b059355fd9e--