From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, Peter Dyballa <Peter_Dyballa@Web.DE>,
Martin Stjernholm <mast@lysator.liu.se>,
Stefan Monnier <monnier@iro.umontreal.ca>,
emacs-devel@gnu.org
Subject: Re: Old-style backquotes in cc-vars.el
Date: Sat, 06 Oct 2007 23:46:54 +0200 [thread overview]
Message-ID: <87sl4nkjap.fsf@ambire.localdomain> (raw)
In-Reply-To: <20071006205118.GA21218@muc.de> (Alan Mackenzie's message of "Sat\, 6 Oct 2007 20\:51\:18 +0000")
() Alan Mackenzie <acm@muc.de>
() Sat, 6 Oct 2007 20:51:18 +0000
Can you explain to me what it is doing? If so, please do! :-)
it (or rather, the funky fragment in question) is converting the
given `:type FOO', mined out of the rest `args', to an aggregate
`:type (radio STYLE (PREAMBLE FOO))'. `radio' means choose one of
the following exclusively.
STYLE stands for the choice where the value is taken from some style
setting (you probably know more about this than i do).
PREAMBLE is optionally prepended to FOO; that is, if FOO contains
:tag or :value, the respective 2-list component is ignored.
finally, the recomposed :type 2-list is spliced back into `args', the
value of which should be valid spec for `custom-declare-variable'.
> (type (eval (list 'identity (plist-get args :type))))
It doesn't quite work - (car type) bombs, because type is
'integer, not a list. I'll figure out, though.
drat, i knew i forgot something. please try this, instead:
> (typ (eval (list 'identity (plist-get args :type))))
> (type (if (consp typ) typ (list typ)))
here we ensure `type' is consp rather than trying to handle
non-consp `type'.
thi
next prev parent reply other threads:[~2007-10-06 21:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-23 20:51 Old-style backquotes in cc-vars.el Stefan Monnier
2007-09-01 10:18 ` Alan Mackenzie
2007-09-03 20:46 ` Stefan Monnier
2007-09-04 3:14 ` T. V. Raman
2007-09-04 22:57 ` Richard Stallman
2007-09-05 2:21 ` T. V. Raman
2007-09-05 2:44 ` dhruva
2007-09-05 3:26 ` Stefan Monnier
2007-09-05 20:02 ` Richard Stallman
2007-09-06 14:27 ` Juri Linkov
2007-09-07 6:32 ` Richard Stallman
2007-09-05 13:29 ` T. V. Raman
2007-10-06 16:31 ` Alan Mackenzie
2007-10-06 18:31 ` Thien-Thi Nguyen
2007-10-06 20:51 ` Alan Mackenzie
2007-10-06 21:46 ` Thien-Thi Nguyen [this message]
2007-10-11 17:41 ` Davis Herring
2007-10-19 7:29 ` Thien-Thi Nguyen
2007-10-06 22:27 ` Stefan Monnier
2007-10-07 9:40 ` Alan Mackenzie
2007-10-07 9:41 ` Thien-Thi Nguyen
2007-10-07 19:40 ` Eli Zaretskii
2007-10-07 13:10 ` Richard Stallman
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=87sl4nkjap.fsf@ambire.localdomain \
--to=ttn@gnuvola.org \
--cc=Peter_Dyballa@Web.DE \
--cc=acm@muc.de \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mast@lysator.liu.se \
--cc=monnier@iro.umontreal.ca \
/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.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).