From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: (interactive) arguments Date: Thu, 02 Jan 2020 17:30:04 +0100 Message-ID: <871rshddo3.fsf@mbork.pl> References: <7DEBD428-8AC8-4633-A0C0-A8F2B862BE82@traduction-libre.org> <084E75E0-B343-4747-AE7E-F0DCF8B7F992@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="261618"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 02 17:30:39 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 1in3Mt-0015vW-2Z for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 17:30:39 +0100 Original-Received: from localhost ([::1]:42678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in3Mr-0000Oz-UX for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 11:30:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57899) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in3Mc-0000Lw-5h for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:30:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in3MZ-00042W-77 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:30:21 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:60676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1in3MZ-00040s-02 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 11:30:19 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 73A28E6DEC; Thu, 2 Jan 2020 17:30:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g2gKIHTFKMZD; Thu, 2 Jan 2020 17:30:12 +0100 (CET) Original-Received: from localhost (83.25.100.87.ipv4.supernova.orange.pl [83.25.100.87]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 2BB2CE6D83; Thu, 2 Jan 2020 17:30:12 +0100 (CET) In-reply-to: <084E75E0-B343-4747-AE7E-F0DCF8B7F992@traduction-libre.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 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:122133 Archived-At: On 2020-01-02, at 17:08, Jean-Christophe Helary wrote: >> On Jan 2, 2020, at 1:26, Jean-Christophe Helary wrote: >> >>> On Jan 2, 2020, at 0:51, Stefan Monnier wrote: >>> >>>> I'm looking for a way to add a default value to interactive by just >>>> using the "string" version: >>> [...] >>>> Is that possible ? >>> >>> No: you have to use the "list" version (which is really the >>> "expression" version). >> >> Thank you Stefan ! > > 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... > > Is there a way around that ? Does this help? http://mbork.pl/2015-09-12_A_trick_with_argument_for_interactive_call Best, -- Marcin Borkowski http://mbork.pl