From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: A way for interactive to modify a let-bound variable? Date: Fri, 12 Feb 2016 20:30:31 +0100 Message-ID: <87twld6814.fsf@mbork.pl> References: <84f4ec8a-8db7-490b-80d9-0b82788f6a26@default> <87a8n57ss1.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455305471 26191 80.91.229.3 (12 Feb 2016 19:31:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 19:31:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 12 20:31:02 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aUJQk-0000HK-G6 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 20:31:02 +0100 Original-Received: from localhost ([::1]:35673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUJQj-0000wJ-EK for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 14:31:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUJQX-0000ve-GT for help-gnu-emacs@gnu.org; Fri, 12 Feb 2016 14:30:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUJQS-0007A3-VE for help-gnu-emacs@gnu.org; Fri, 12 Feb 2016 14:30:49 -0500 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:57733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUJQS-00079g-O0 for help-gnu-emacs@gnu.org; Fri, 12 Feb 2016 14:30:44 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 3DC6F9D2002; Fri, 12 Feb 2016 20:30:37 +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 UDgFGHNCxSBX; Fri, 12 Feb 2016 20:30:33 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id F1FC09D2001; Fri, 12 Feb 2016 20:30:32 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.2 In-reply-to: <87a8n57ss1.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109151 Archived-At: On 2016-02-12, at 18:17, Michael Heerdegen wrote: > Drew Adams writes: > >> (You can of course use `let' _inside_ `interactive', but it is not >> clear what you are trying to do, so I hesitate to guess what >> code might help.) > > Yes, moving it inside is what he wants, I think. > > Kaushal, don't hesitate to use whatever elisp you like in `interactive', > nothing special here. Just be sure your expression returns the list of > arguments. My little 2cents & a plug: perhaps this could help? http://mbork.pl/2015-09-12_A_trick_with_argument_for_interactive_call > But the interactive form must look like (interactive ...), else it is > not recognized as such. > > Michael. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University