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:42:50 +0900 Message-ID: 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="50708"; 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:44:31 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 1in3aI-000D0p-4n for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 17:44:30 +0100 Original-Received: from localhost ([::1]:42798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in3aG-00078f-Uf for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 11:44:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59336) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in3ZS-0006Y1-5x for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:43:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in3ZQ-0007EN-H4 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:43:37 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1in3ZP-0007Dd-Uc for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:43:36 -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 relay6-d.mail.gandi.net (Postfix) with ESMTPSA id B3103C0007 for ; Thu, 2 Jan 2020 16:43:30 +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.198 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:122134 Archived-At: > On Jan 3, 2020, at 1:30, Marcin Borkowski wrote: >=20 >=20 > On 2020-01-02, at 17:08, Jean-Christophe Helary = wrote: >=20 >>> On Jan 2, 2020, at 1:26, Jean-Christophe Helary = wrote: >>>=20 >>>> On Jan 2, 2020, at 0:51, Stefan Monnier = wrote: >>>>=20 >>>>> I'm looking for a way to add a default value to interactive by = just >>>>> using the "string" version: >>>> [...] >>>>> Is that possible ? >>>>=20 >>>> No: you have to use the "list" version (which is really the >>>> "expression" version). >>>=20 >>> Thank you Stefan ! >>=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 Yes ! Excellent ! > Well, it is quite similar to the let=3D/=3Dlet* distinction. If only = there were something like interactive*=E2=80=A6 That's exactly what I was thinking !!! :) Thank you. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune