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: Yuri Khan
Subject: Re: ask for the value of several variables at once
Date: Wed, 14 Mar 2018 16:42:26 +0700

On Wed, Mar 14, 2018 at 4:26 PM, Uwe Brauer <oub@mat.ucm.es> wrote:
>>>> "Emanuel" == Emanuel Berg <moasen@zoho.com> writes:
>
>    >>> (defun my-ask-mail-yank ()
>    >>>   (interactive)
>    >>>   (mapconcat (lambda (sym) (format "%s: %s" sym (symbol-value sym)))
>    >>>              '(sc-citation-leader
>    >>>                sc-reference-tag-string
>    >>>                message-yank-cited-prefix
>    >>>                message-yank-prefix)
>    >>>              "\n"))
>
> Just out of curiosity what is the advantage over Yuri's solution?

The main advantage as I see it is that you don’t have to repeat each
variable’s name(once in the format string, again in the arguments to
‘message’). Could become significant if you later want to make many
more commands of this kind, displaying many other variables.



reply via email to

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