emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas <andreas.tjarnberg@sbc.su.se>
To: emacs-orgmode@gnu.org
Subject: Re: Tangle with conditional statement
Date: Sun, 6 Oct 2013 21:50:41 +0200	[thread overview]
Message-ID: <CAC=rykeNR6zT4cMM2C0XRR4k6LEMJGW-dBHaWjF9ub1u5eD1Ug@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

Hi Fabrice and Eric,

A long over due response. Apologies.

I got a unanimous answer about not putting the conditional statements in
the code block header, that was reassuring =). I guess the use case here is
if you have different configurations for different users or machines or
something similar.

I looked at the code I was shown. I noticed there was some pieces missing
but even though adding them I could not get the code to work properly. I
figured it was due to me using el-get for my packages and no packages are
actually required, but somehow autoloaded instead, by the el-get setup, or
it's just a matter of me being a noob elisper.

Anyway,  when I was fiddling around with the code I stumbled upon el-gets
built in functions. I noticed that, of course, el-get has functions for
checking install status of packages. My current solution therefore looks
like this:
(if (el-get-package-exists-p "<package>")
      (do stuff) )

which seems to work well for now but is not optimal. Of course it's only
works with el-get installed packages but I'll have to live with it for now.

Thanks Fabrice and Eric for your swift responses.

Regards

Andreas

[-- Attachment #2: Type: text/html, Size: 1484 bytes --]

             reply	other threads:[~2013-10-06 19:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-06 19:50 Andreas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-08-24 11:51 Tangle with conditional statement Andreas
2013-08-24 14:04 ` Fabrice Niessen
2013-08-24 15:49   ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC=rykeNR6zT4cMM2C0XRR4k6LEMJGW-dBHaWjF9ub1u5eD1Ug@mail.gmail.com' \
    --to=andreas.tjarnberg@sbc.su.se \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).