[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ask for the value of several variables at once
From: |
Emanuel Berg |
Subject: |
Re: ask for the value of several variables at once |
Date: |
Fri, 09 Mar 2018 09:32:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Emanuel Berg wrote:
> OK, but better (and much more difficult) to do
> a function/macro which is used like this,
> NB with no string or quotes to protect the
> original symbols:
>
> (vars-and-values var-1 ... var-n)
>
> which should give a list:
>
> (var-1 var-1-value ... var-n var-n-value)
>
> or
>
> ((var-1 var-1-value) ... (var-n var-n-value))
>
> Do it today - in a different way :)
This is how far I got - next step to make it
work with a list of vars...
(defmacro echo-var (var)
`(list ,(symbol-name var) ,var) )
;; (echo-var fill-column) ; ("fill-column" 47)
--
underground experts united
http://user.it.uu.se/~embe8573
- Re: ask for the value of several variables at once, (continued)
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/17
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/17
- Re: ask for the value of several variables at once, John Mastro, 2018/03/17
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/18
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/18
- Re: ask for the value of several variables at once, John Mastro, 2018/03/19
- Re: ask for the value of several variables at once, Stefan Monnier, 2018/03/18
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/18
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/14
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/09
- Re: ask for the value of several variables at once,
Emanuel Berg <=
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/09
- Re: ask for the value of several variables at once, tomas, 2018/03/09
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/09
- Re: ask for the value of several variables at once, tomas, 2018/03/09
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/09
- Re: ask for the value of several variables at once, Uwe Brauer, 2018/03/09
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/09
- Re: ask for the value of several variables at once, tomas, 2018/03/09
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/09
- Re: ask for the value of several variables at once, tomas, 2018/03/09