From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: ask for the value of several variables at once Date: Wed, 14 Mar 2018 16:42:26 +0700 Message-ID: References: <87sh9a36pw.fsf@mat.ucm.es> <20180308160838.GA32404@tuxteam.de> <87fu5aqwml.fsf@mat.ucm.es> <20180308215517.GA12322@tuxteam.de> <86o9jxdosm.fsf@zoho.com> <871sgn57ot.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521020472 10569 195.159.176.226 (14 Mar 2018 09:41:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 09:41:12 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 10:41:08 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ew2uC-0002bo-Hb for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 10:41:08 +0100 Original-Received: from localhost ([::1]:45132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ew2wF-0000Be-LZ for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 05:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ew2vq-0000B7-Ha for help-gnu-emacs@gnu.org; Wed, 14 Mar 2018 05:42:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ew2vo-0000il-Rp for help-gnu-emacs@gnu.org; Wed, 14 Mar 2018 05:42:50 -0400 Original-Received: from mail-ot0-x231.google.com ([2607:f8b0:4003:c0f::231]:44816) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ew2vo-0000hk-I3 for help-gnu-emacs@gnu.org; Wed, 14 Mar 2018 05:42:48 -0400 Original-Received: by mail-ot0-x231.google.com with SMTP id 79-v6so2563886oth.11 for ; Wed, 14 Mar 2018 02:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-transfer-encoding; bh=rKz9JRv3/u6kdDXpU0ZjCzSU8yIgvtu7Ka4OSpIdUaI=; b=CpBRc9PfjjN6INs2o6a7Op06UcCv/O2ralxW4Gt9VQkp3KxqwAD6bS1Ph3mviis27q bCG47VfopZWreQW5DpWE2ZYqZRN7+ISsF+Dkrya2WP9Xsefz4SyTqM4t5wojiDhvOXob D7QSb+jrFywBAGNp/hZ2ZEFAhY9ZeognH35FeqiQq65EZdA4HzX20tv61dOHAeQJFMXE LBcsSUlo0TazJwW7KTzoTNi6+Ufe3OIRSaPC3jtRcoZzAPpIVVdmHc5kPiep0yjcmj7/ Gr6AoYBFH2gJQuPOgoUdGD746GDXIDy+c+t0Uyg+Mmn2hyyFxwRuGTO2vPE9+PTkja4Y KVJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-transfer-encoding; bh=rKz9JRv3/u6kdDXpU0ZjCzSU8yIgvtu7Ka4OSpIdUaI=; b=d3eQtqQKsriA49BC+ghJcA9a/B5RGsOjKJDTbSYrLG9Cu2pqxjAgkBvt8GzQrSkFMQ tgEl3WwgUf9ZS6bHrci3CxqYzKnAY9EQOq1SxeusYxWcXsN9EtFXMVEXVVelc8u0rI2s aXw7n3RBJuttm02oMO1jQFK8QsYiH00QUMIt0EPo3F0xgXxU4yiAPKET949GCeX5rIRS +YFyr+deyMuMZaf4N4krjTkyHhUwN9t6+5/HVUv/lOjyoiLyd7Q+Nj7UfVZ/fQky89OT bp4Tev2uExscabS/xUbtglvU3Z0UwyKlXz0AVBtXvuHly4Mp3Osj+eiUBnQChDpud1Bx GaZg== X-Gm-Message-State: AElRT7GdUesnDWlVD33skU9vLhsrjie2/UxwM59mJCL9uJq3lGbmzAz6 Y4JdE5i+bVa789ZwI52mRxFa1siaBbykPUqi5HM= X-Google-Smtp-Source: AG47ELv7fbnWoakunDhcEq3A8uDj7B9cufUXJSa5STfb0uApnPPJLAufHN9HEwXwEsqO3Ku0sYUPlftoXGlcn4Dp13s= X-Received: by 10.157.86.226 with SMTP id b31mr2432256otj.209.1521020567321; Wed, 14 Mar 2018 02:42:47 -0700 (PDT) Original-Received: by 10.74.211.77 with HTTP; Wed, 14 Mar 2018 02:42:26 -0700 (PDT) In-Reply-To: <871sgn57ot.fsf@mat.ucm.es> X-Google-Sender-Auth: 7AB-wygjgoMRKesW4H9TPZETXXM X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116188 Archived-At: On Wed, Mar 14, 2018 at 4:26 PM, Uwe Brauer wrote: >>>> "Emanuel" =3D=3D Emanuel Berg 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=E2=80=99t have to repeat eac= h variable=E2=80=99s name(once in the format string, again in the arguments t= o =E2=80=98message=E2=80=99). Could become significant if you later want to m= ake many more commands of this kind, displaying many other variables.