From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: list of agenda files in a file
Date: Fri, 19 Sep 2014 09:08:33 -0400 [thread overview]
Message-ID: <87sijnwyem.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: E1XUw92-0005OK-5R@lactose.homelinux.net
hymie@lactose.homelinux.net writes:
> Eric S Fraga writes:
>>
>>> (setq org-agenda-files (quote ("~/org/agenda.file.list")))
>>
>>which sets the variable to a list of one string, which is *not* what you
>>want. Try
>>(setq org-agenda-files "~/org/agenda.file.list")
>
> Ohhhhh. Thank you very much.
>
> I have and/or see things like this:
> (setq org-tags-exclude-from-inheritance (quote ("crypt")))
> org-agenda-span (quote month)
> org-agenda-files (quote ("~/org/project.org"))
>
> and I know that "cons" makes a list. I didn't realize that "quote"
> also makes a list.
>
`quote' does not make a list - it just prevents evaluation. It's the
inner parentheses you used that made it into a list.
(setq org-agenda-files (quote "~/org/agenda.file.list"))
would work fine, but since strings evaluate to themselves, the quote
is unnecessary in this case.
The point is that lisp generally evaluates arguments to function calls
*before* calling the function (there are things called "special forms"
that do not follow this general rule: e.g setq is a special form that
does not evaluate its first argument). So if you want to call a function
but not evaluate its argument, you have to quote the argument.
--
Nick
prev parent reply other threads:[~2014-09-19 13:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-18 22:47 list of agenda files in a file hymie!
2014-09-19 7:27 ` Thorsten Jolitz
2014-09-19 10:41 ` hymie!
2014-09-19 10:59 ` Eric S Fraga
2014-09-19 11:14 ` hymie
2014-09-19 13:08 ` Nick Dokos [this message]
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=87sijnwyem.fsf@pierrot.dokosmarshall.org \
--to=ndokos@gmail.com \
--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).