From: Philippe M. Coatmeur <philippe.coatmeur@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: What is the :eval form ?
Date: Fri, 08 Jun 2012 18:39:22 +0000 [thread overview]
Message-ID: <lzvcj1tzqd.wl%philippe.coatmeur@gmail.com> (raw)
Hi ; I'm trying to get some information about this (e?)lisp form
(add-to-list 'global-mode-string
'(:eval (mail-bug-mode-line-all "2")))
But it appears to be really hard to google for it, as both
https://www.google.com/search?q=":eval"
https://www.google.com/search?q="eval"
Return the same results... (apparently google does not care for
punctuation)
How can I find information about this special form ? When I ask emacs
using C-h f with point over it, it acts like google and shows me the
"plain eval" info page... :(
BTW what I'm trying to do is to use a variable to pass the ("2" in the
example) argument to the function, to use it in a loop, like this :
(loop for i from 1 to 3 do
(add-to-list 'global-mode-string
'(:eval (mail-bug-mode-line-all (format "%s" i)))))
but i's value is always stuck at 1 :(
Phil
next reply other threads:[~2012-06-08 18:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-08 18:39 Philippe M. Coatmeur [this message]
2012-06-08 17:56 ` What is the :eval form ? Eli Zaretskii
2012-06-08 18:01 ` Drew Adams
2012-06-08 18:02 ` Tassilo Horn
2012-06-09 6:40 ` Richard Riley
2012-06-09 8:34 ` Thien-Thi Nguyen
2012-06-09 14:08 ` Drew Adams
2012-06-08 18:08 ` Tassilo Horn
2012-06-08 18:10 ` Drew Adams
2012-06-08 18:21 ` Barry Margolin
[not found] ` <mailman.2446.1339178928.855.help-gnu-emacs@gnu.org>
2012-06-08 19:19 ` Philippe M. Coatmeur
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lzvcj1tzqd.wl%philippe.coatmeur@gmail.com \
--to=philippe.coatmeur@gmail.com \
--cc=help-gnu-emacs@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.
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).