From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: (interactive) arguments Date: Fri, 3 Jan 2020 01:57:56 +0900 Message-ID: <18220344-15BC-4605-B7B8-0E841E930D85@traduction-libre.org> References: <7DEBD428-8AC8-4633-A0C0-A8F2B862BE82@traduction-libre.org> <084E75E0-B343-4747-AE7E-F0DCF8B7F992@traduction-libre.org> <871rshddo3.fsf@mbork.pl> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111030"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 02 17:59:00 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1in3oJ-000SjH-Sj for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 17:59:00 +0100 Original-Received: from localhost ([::1]:42916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in3oI-00051W-OP for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 11:58:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60708) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in3o9-00051I-Q5 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:58:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in3o8-0007XY-Ja for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:58:49 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:44667) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1in3o8-0007Vm-Di for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:58:48 -0500 X-Originating-IP: 182.251.133.156 Original-Received: from [172.20.10.2] (KD182251133156.au-net.ne.jp [182.251.133.156]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id E9CFA1C0011 for ; Thu, 2 Jan 2020 16:58:32 +0000 (UTC) In-Reply-To: <871rshddo3.fsf@mbork.pl> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.197 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:122135 Archived-At: > On Jan 3, 2020, at 1:30, Marcin Borkowski wrote: >=20 >> Now, when I use the "expression" version, it looks like the arguments = are not assigned to variables as they are input, so for ex, I can't use = a default value for the input based on the first input... >>=20 >> Is there a way around that ? >=20 > Does this help? >=20 > http://mbork.pl/2015-09-12_A_trick_with_argument_for_interactive_call =E2=86=92=20 > The point is that the form right after interactive should return a = list of two elements, and that is everything interactive cares for =E2=80=93= what the (local) variables inside let* are called is none if its = business. That's really clever ! :) > Now I=E2=80=99m quite sure that you could cook up a macro = interactive*, which would wrap all this in a nice syntax. That, though, = I will try some other day. Have you tried ? Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune