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 19:11:16 +0100 Message-ID: <87o8vlbuez.fsf@mbork.pl> References: <7DEBD428-8AC8-4633-A0C0-A8F2B862BE82@traduction-libre.org> <084E75E0-B343-4747-AE7E-F0DCF8B7F992@traduction-libre.org> <871rshddo3.fsf@mbork.pl> <18220344-15BC-4605-B7B8-0E841E930D85@traduction-libre.org> Mime-Version: 1.0 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="147888"; 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 19:11:49 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 1in4wl-000cKf-7t for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 19:11:47 +0100 Original-Received: from localhost ([::1]:43730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in4wi-0003uu-CI for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 13:11:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40589) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in4wY-0003ta-30 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 13:11:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in4wS-0000sy-J1 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 13:11:32 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:34092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1in4wS-0000pw-A8 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 13:11:28 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 9CD25E6D83; Thu, 2 Jan 2020 19:11:21 +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 KuWQMOPRPgMo; Thu, 2 Jan 2020 19:11:17 +0100 (CET) Original-Received: from localhost (jeden09-dwa27.echostar.pl [213.156.109.227]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 7F367E6694; Thu, 2 Jan 2020 19:11:17 +0100 (CET) In-reply-to: <18220344-15BC-4605-B7B8-0E841E930D85@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:122139 Archived-At: On 2020-01-02, at 17:57, Jean-Christophe Helary wrote: >> On Jan 3, 2020, at 1:30, Marcin Borkowski wrote: >>=20 >>> Now, when I use the "expression" version, it looks like the arguments a= re not assigned to variables as they are input, so for ex, I can't use a de= fault 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 wha= t 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 o= ther day. > > Have you tried ? Nope, and now that I know more about Elisp, I'm 99% sure it's impossible, since `interactive' is not "evaluated" in any sense. But I'd like to hear from someone more competent. Best, --=20 Marcin Borkowski http://mbork.pl