From: Yuri Khan <yuri.v.khan@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: ask for the value of several variables at once
Date: Wed, 14 Mar 2018 16:42:26 +0700 [thread overview]
Message-ID: <CAP_d_8WOnr3y4qa-3-Pdt0dZEjrB6BHsfX5ts5AD54kLh87h6A@mail.gmail.com> (raw)
In-Reply-To: <871sgn57ot.fsf@mat.ucm.es>
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.
next prev parent reply other threads:[~2018-03-14 9:42 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 15:52 ask for the value of several variables at once Uwe Brauer
2018-03-08 16:08 ` tomas
2018-03-08 17:56 ` Uwe Brauer
2018-03-08 21:55 ` tomas
2018-03-09 18:13 ` Uwe Brauer
2018-03-09 20:07 ` Nick Dokos
[not found] ` <mailman.10352.1520626056.27995.help-gnu-emacs@gnu.org>
2018-03-09 20:24 ` Emanuel Berg
2018-03-09 23:44 ` Nick Dokos
[not found] ` <mailman.10340.1520619259.27995.help-gnu-emacs@gnu.org>
2018-03-09 19:36 ` Emanuel Berg
2018-03-14 9:26 ` Uwe Brauer
2018-03-14 9:42 ` Yuri Khan [this message]
[not found] ` <mailman.10592.1521020572.27995.help-gnu-emacs@gnu.org>
2018-03-14 10:31 ` Emanuel Berg
2018-03-14 11:53 ` Yuri Khan
[not found] ` <mailman.10597.1521028463.27995.help-gnu-emacs@gnu.org>
2018-03-14 12:47 ` Emanuel Berg
2018-03-17 16:44 ` Emanuel Berg
2018-03-17 17:25 ` Emanuel Berg
2018-03-17 20:59 ` John Mastro
[not found] ` <mailman.10810.1521320411.27995.help-gnu-emacs@gnu.org>
2018-03-18 12:14 ` Emanuel Berg
2018-03-18 12:30 ` Emanuel Berg
2018-03-19 21:14 ` John Mastro
2018-03-18 15:00 ` Stefan Monnier
[not found] ` <mailman.10837.1521385252.27995.help-gnu-emacs@gnu.org>
2018-03-18 15:09 ` Emanuel Berg
[not found] ` <mailman.10591.1521019620.27995.help-gnu-emacs@gnu.org>
2018-03-14 9:39 ` Emanuel Berg
[not found] ` <mailman.10293.1520546129.27995.help-gnu-emacs@gnu.org>
2018-03-09 8:01 ` Emanuel Berg
2018-03-09 8:32 ` Emanuel Berg
2018-03-09 9:18 ` Emanuel Berg
2018-03-09 10:14 ` tomas
[not found] ` <mailman.10313.1520590498.27995.help-gnu-emacs@gnu.org>
2018-03-09 10:42 ` Emanuel Berg
2018-03-09 11:49 ` tomas
[not found] ` <mailman.10316.1520596187.27995.help-gnu-emacs@gnu.org>
2018-03-09 14:23 ` Emanuel Berg
2018-03-09 18:18 ` Uwe Brauer
[not found] ` <mailman.10342.1520619737.27995.help-gnu-emacs@gnu.org>
2018-03-09 19:30 ` Emanuel Berg
2018-03-09 9:19 ` tomas
[not found] ` <mailman.10308.1520587214.27995.help-gnu-emacs@gnu.org>
2018-03-09 10:09 ` Emanuel Berg
2018-03-09 10:21 ` tomas
2018-03-09 20:07 ` Robert L.
2018-03-09 20:17 ` Emanuel Berg
2018-03-09 10:03 ` Yuri Khan
2018-03-09 18:15 ` Uwe Brauer
[not found] ` <mailman.10310.1520589843.27995.help-gnu-emacs@gnu.org>
2018-03-09 10:05 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP_d_8WOnr3y4qa-3-Pdt0dZEjrB6BHsfX5ts5AD54kLh87h6A@mail.gmail.com \
--to=yuri.v.khan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).