[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.
- ask for the value of several variables at once, Uwe Brauer, 2018/03/08
- Re: ask for the value of several variables at once, tomas, 2018/03/08
- Re: ask for the value of several variables at once, Uwe Brauer, 2018/03/08
- Re: ask for the value of several variables at once, tomas, 2018/03/08
- Re: ask for the value of several variables at once, Uwe Brauer, 2018/03/09
- Re: ask for the value of several variables at once, Nick Dokos, 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, Nick Dokos, 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/14
- Re: ask for the value of several variables at once,
Yuri Khan <=
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/14
- Re: ask for the value of several variables at once, Yuri Khan, 2018/03/14
- 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/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