[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ask for the value of several variables at once
From: |
tomas |
Subject: |
Re: ask for the value of several variables at once |
Date: |
Thu, 8 Mar 2018 17:08:38 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Mar 08, 2018 at 04:52:27PM +0100, Uwe Brauer wrote:
> Hi
>
> I am having problems with the mail yank prefix, so it would be
> convenient to ask for the value of several variables and the
> returned values would be in a list.
That's called `list' :-)
>
> The most obvious choice
> (defun my-ask-mail-yank () (interactive) (describe-variable
> 'sc-citation-leader) (describe-variable
> 'sc-reference-tag-string) (describe-variable
> 'message-yank-cited-prefix) (describe-variable
> 'message-yank-prefix))
Try this (I did some indentation cosmetics, hope that's OK)
(defun my-ask-mail-yank ()
(interactive)
(list
(describe-variable 'sc-citation-leader)
(describe-variable 'sc-reference-tag-string)
(describe-variable 'message-yank-cited-prefix)
(describe-variable 'message-yank-prefix)))
If you want to get fancy, you might try:
(defun my-ask-mail-yank ()
(interactive)
(mapcar #'describe-variable
'(sc-citation-leader sc-reference-tag-string
message-yank-cited-prefix message-yank-prefix)))
Although I'm a bit confused on what you really want to
achieve, I must admit.
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlqhYAYACgkQBcgs9XrR2kZD2ACdHDxNExDJIN0iR4WmLn3QJIaW
zzsAnjh3XPf68lfLwxXL0xQYSrezNzqY
=5Scb
-----END PGP SIGNATURE-----
- 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 <=
- 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, 2018/03/14
- Message not available
- Re: ask for the value of several variables at once, Emanuel Berg, 2018/03/14