From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: ask for the value of several variables at once Date: Thu, 8 Mar 2018 17:08:38 +0100 Message-ID: <20180308160838.GA32404@tuxteam.de> References: <87sh9a36pw.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1520525240 30380 195.159.176.226 (8 Mar 2018 16:07:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2018 16:07:20 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 17:07:16 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 1ety4Z-0007oO-So for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2018 17:07:16 +0100 Original-Received: from localhost ([::1]:39963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ety6c-0001jE-Kw for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2018 11:09:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ety68-0001iZ-06 for help-gnu-emacs@gnu.org; Thu, 08 Mar 2018 11:08:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ety63-0003Wn-1E for help-gnu-emacs@gnu.org; Thu, 08 Mar 2018 11:08:51 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:45881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ety62-0003NM-MT for help-gnu-emacs@gnu.org; Thu, 08 Mar 2018 11:08:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=20171004; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=ntQWA6SGG/kNghlD2aHCL94ESWaNoON5Dc+smQ+B7uY=; b=nL+50R+O6q+H+/1rJPIqkkCWwDPXrCPmGIJ0qX2uIC694rNW6jO+HZRuFdPd1A+6VU5p+jUZp+Y3T4vM4LuFC2s5WMyPEw/jd8ywaCvT4OrpK/7xhOTwbiVdozKtJiszWCSJart++3jSDgaBH9ZUbwE3OPHmWqdTtelCR5IaXFtSNKnuOA3VZqGk+krfQwcfgBlP6Laan4/ELlxrZ9Byjl9O/RgrTnlOSawqdwPEHvdqPT0QTV/u5sfNjUW8+zWqwbwDSa56QQFGoDEXbZcF7cdT/wxGdsR4Ye36E1tA0U75+g/tKCqrrMvbObUCMTzFFAmL6S8L2Pnyf6R+6yDK8A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ety5u-0008W8-ND for help-gnu-emacs@gnu.org; Thu, 08 Mar 2018 17:08:38 +0100 In-Reply-To: <87sh9a36pw.fsf@mat.ucm.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 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:116132 Archived-At: -----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-----