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: Fri, 9 Mar 2018 11:21:33 +0100 Message-ID: <20180309102133.GC30453@tuxteam.de> References: <87sh9a36pw.fsf@mat.ucm.es> <20180308160838.GA32404@tuxteam.de> <87fu5aqwml.fsf@mat.ucm.es> <86d10dr833.fsf@zoho.com> <86muzhps3c.fsf@zoho.com> <86a7vhpnlk.fsf@zoho.com> 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 1520590808 6302 195.159.176.226 (9 Mar 2018 10:20:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 10:20:08 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 11:20:04 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 1euF87-0001Xe-Sq for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 11:20:04 +0100 Original-Received: from localhost ([::1]:44301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euFAA-0007uh-MW for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 05:22:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euF9e-0007u1-PB for help-gnu-emacs@gnu.org; Fri, 09 Mar 2018 05:21:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euF9a-00083w-Qi for help-gnu-emacs@gnu.org; Fri, 09 Mar 2018 05:21:38 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:48111) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euF9a-00083d-J1 for help-gnu-emacs@gnu.org; Fri, 09 Mar 2018 05:21:34 -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:Cc:To:Date; bh=RszoY6/Mxhk30srk9rqwvOtpuN9DxqKGpNRuM27JW48=; b=tfm0jLV2dTkWJ/Xdjm3tqhgsSMbMym8LSNBe0ThdGLRoC+xcNB7CcJ2lY1Hdj5JxTOQBEZFljJWtAaydGKmXc7RfpwaHzYAwdn7JftICdy3babtOevzzpeCt0FordFhHbtnPmGtzeS5i6Nv4nr70LLFg5z/eoAP+KhHWWkvuJlKjK4aFiCT/pykZsUz8scaovMcmGaEfoQF7bX6GF5YI5tpNGZskyKImFvCZoxAzZPp4TK19QELNR90GsPOt5xliC+cy24R9GSelw5lJi52v3cUvUbZrIgcqhT1dwHaFzHm0Z07/yNqTlZwXl5WhteftnQndbzvpafitSKlRjy53ow==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1euF9Z-0008RN-Ck; Fri, 09 Mar 2018 11:21:33 +0100 In-Reply-To: <86a7vhpnlk.fsf@zoho.com> 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:116146 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Mar 09, 2018 at 11:09:11AM +0100, Emanuel Berg wrote: > tomas wrote: > > >> (defmacro echo-var (var) > >> `(list ,(symbol-name var) ,var) ) > >> ;; (echo-var fill-column) ; ("fill-column" 47) > > > > That's a good first step. The question now is > > whether to delegate the looping over the list > > to a function or not. > > I don't get it to work with the set functions > and &rest. But I almost didn't write a single > macro all my Elisp life! Some guys do it all > the time and I suspect for them this task is > all but trivial... Ah, macro and varargs. You might take the "cheap" cop-out and decree that your macro takes *one list* as argument instead of a variable number of arguments. You'd be in good company there (cf. the `let' special form). If you're a perfectionist, more work might be involved (I've no ready solution for you at the moment, sorry) Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlqiYC0ACgkQBcgs9XrR2kZ86QCdG6T9YXwRpn0BK4vZijVsuulj DXYAn2vJI4oOhSAGDu4PwsSPcBz7+KMt =z2hG -----END PGP SIGNATURE-----