help-gnu-emacs
[Top][All Lists]
Advanced

[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 11:42:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

tomas wrote:

> In "classical" Lisps the functions always
> evaluate their args. The "other" way is what
> macros are for (or special forms).

Here is a "classical" solution. How to rewrite
it the "other" way, only Jehovah knows...

    (defun echo-vars (&rest vars)
      (mapcar
       (lambda (v) (list (symbol-name v) (symbol-value  v)))
       vars))
    ;; (echo-vars 'fill-column 'buffer-file-name)

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]