From: <tomas@tuxteam.de>
To: Emanuel Berg <moasen@zoho.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: ask for the value of several variables at once
Date: Fri, 9 Mar 2018 11:21:33 +0100 [thread overview]
Message-ID: <20180309102133.GC30453@tuxteam.de> (raw)
In-Reply-To: <86a7vhpnlk.fsf@zoho.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Mar 09, 2018 at 11:09:11AM +0100, Emanuel Berg wrote:
> tomas wrote:
>
> >> (defmacro echo-var (var)
> >> `(list ,(symbol-name var) ,var) )
> >> ;; (echo-var fill-column) ; ("fill-column" 47)
> >
> > That's a good first step. The question now is
> > whether to delegate the looping over the list
> > to a function or not.
>
> I don't get it to work with the set functions
> and &rest. But I almost didn't write a single
> macro all my Elisp life! Some guys do it all
> the time and I suspect for them this task is
> all but trivial...
Ah, macro and varargs. You might take the "cheap" cop-out
and decree that your macro takes *one list* as argument
instead of a variable number of arguments. You'd be in good
company there (cf. the `let' special form). If you're a
perfectionist, more work might be involved (I've no ready
solution for you at the moment, sorry)
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlqiYC0ACgkQBcgs9XrR2kZ86QCdG6T9YXwRpn0BK4vZijVsuulj
DXYAn2vJI4oOhSAGDu4PwsSPcBz7+KMt
=z2hG
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2018-03-09 10:21 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 15:52 ask for the value of several variables at once Uwe Brauer
2018-03-08 16:08 ` tomas
2018-03-08 17:56 ` Uwe Brauer
2018-03-08 21:55 ` tomas
2018-03-09 18:13 ` Uwe Brauer
2018-03-09 20:07 ` Nick Dokos
[not found] ` <mailman.10352.1520626056.27995.help-gnu-emacs@gnu.org>
2018-03-09 20:24 ` Emanuel Berg
2018-03-09 23:44 ` Nick Dokos
[not found] ` <mailman.10340.1520619259.27995.help-gnu-emacs@gnu.org>
2018-03-09 19:36 ` Emanuel Berg
2018-03-14 9:26 ` Uwe Brauer
2018-03-14 9:42 ` Yuri Khan
[not found] ` <mailman.10592.1521020572.27995.help-gnu-emacs@gnu.org>
2018-03-14 10:31 ` Emanuel Berg
2018-03-14 11:53 ` Yuri Khan
[not found] ` <mailman.10597.1521028463.27995.help-gnu-emacs@gnu.org>
2018-03-14 12:47 ` Emanuel Berg
2018-03-17 16:44 ` Emanuel Berg
2018-03-17 17:25 ` Emanuel Berg
2018-03-17 20:59 ` John Mastro
[not found] ` <mailman.10810.1521320411.27995.help-gnu-emacs@gnu.org>
2018-03-18 12:14 ` Emanuel Berg
2018-03-18 12:30 ` Emanuel Berg
2018-03-19 21:14 ` John Mastro
2018-03-18 15:00 ` Stefan Monnier
[not found] ` <mailman.10837.1521385252.27995.help-gnu-emacs@gnu.org>
2018-03-18 15:09 ` Emanuel Berg
[not found] ` <mailman.10591.1521019620.27995.help-gnu-emacs@gnu.org>
2018-03-14 9:39 ` Emanuel Berg
[not found] ` <mailman.10293.1520546129.27995.help-gnu-emacs@gnu.org>
2018-03-09 8:01 ` Emanuel Berg
2018-03-09 8:32 ` Emanuel Berg
2018-03-09 9:18 ` Emanuel Berg
2018-03-09 10:14 ` tomas
[not found] ` <mailman.10313.1520590498.27995.help-gnu-emacs@gnu.org>
2018-03-09 10:42 ` Emanuel Berg
2018-03-09 11:49 ` tomas
[not found] ` <mailman.10316.1520596187.27995.help-gnu-emacs@gnu.org>
2018-03-09 14:23 ` Emanuel Berg
2018-03-09 18:18 ` Uwe Brauer
[not found] ` <mailman.10342.1520619737.27995.help-gnu-emacs@gnu.org>
2018-03-09 19:30 ` Emanuel Berg
2018-03-09 9:19 ` tomas
[not found] ` <mailman.10308.1520587214.27995.help-gnu-emacs@gnu.org>
2018-03-09 10:09 ` Emanuel Berg
2018-03-09 10:21 ` tomas [this message]
2018-03-09 20:07 ` Robert L.
2018-03-09 20:17 ` Emanuel Berg
2018-03-09 10:03 ` Yuri Khan
2018-03-09 18:15 ` Uwe Brauer
[not found] ` <mailman.10310.1520589843.27995.help-gnu-emacs@gnu.org>
2018-03-09 10:05 ` Emanuel Berg
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180309102133.GC30453@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
--cc=moasen@zoho.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.