From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: A way for interactive to modify a let-bound variable? Date: Fri, 12 Feb 2016 14:20:51 -0500 Message-ID: References: <84f4ec8a-8db7-490b-80d9-0b82788f6a26@default> <87a8n57ss1.fsf@web.de> <87a8n5zsd5.fsf@web.de> <87y4apyc7l.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1455304906 16816 80.91.229.3 (12 Feb 2016 19:21:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 19:21:46 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 12 20:21:46 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 1aUJHl-0001TN-C3 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 20:21:45 +0100 Original-Received: from localhost ([::1]:35612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUJHk-0006Rc-Q3 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 14:21:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUJHZ-0006RL-3U for help-gnu-emacs@gnu.org; Fri, 12 Feb 2016 14:21:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUJHY-0002pt-4h for help-gnu-emacs@gnu.org; Fri, 12 Feb 2016 14:21:33 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:38782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUJHX-0002pW-Sb for help-gnu-emacs@gnu.org; Fri, 12 Feb 2016 14:21:32 -0500 Original-Received: by mail-wm0-x229.google.com with SMTP id p63so32280533wmp.1 for ; Fri, 12 Feb 2016 11:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=6ootmJYbzQGiIOW70A0afSxB5qL0xkfSQdaBnCeK1a0=; b=NnAyfSTlN6PI1dzSduG1XmW+P8CM7d4BbkGVMw4xwkqRJWRXNKNPglX6hvLuyYne2h JW/P+mfsmfl38dzGgpb/Zx8gDzI/1hBODYjGayB3pz66C9KvgVSD4WKpNRig+FZ5l9wK R6ntTXwsnCBoA2+vEXO/6Onp3XANlvV0wvnjr1yTLFktMNVgjDGkBfHen4q1/SVvnheN 6aTjOd2esyDvBP27qBubziimsjieEr3H0QSEKI0BkceHwaEtlNjM7ZydJMrk+I9UGOv9 KU0feVm8W8dDgJuOrMe/Qp/GrhCGWYBEfnLjIet7bka1/7nGMjSsPIvFk9UZ4Q8myhI+ 4zyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=6ootmJYbzQGiIOW70A0afSxB5qL0xkfSQdaBnCeK1a0=; b=fDFAsbxbVK8MRnYTSfTENFaEtfDd0ZLX+poMZKeM0tBl9kBf8cP2594U734U3SDS8/ smWitdlqK0+DS+9jRePrjShTkv6lHzGK1g0L3eB6o6evGxmb9qdHUFi6t4pmmhfSAcw1 qqX8+emLleIGjMsXQVxIqJWeTapawIUZtc66iz/v3MmtPuDMUadP5uvm1XFLBRMMo/yT Y5WkWEre/yWoqm1veNaPuR+9V8ZKhxfuUtKinagRp5JPeTfYySm6dKBHZMsAvZ6ryotx meKyJayZ7ep2xPzLc9CtXk4SLlQxQXQlelXiu4beBTQ8PJZ/2FKVwwoY3aY2rXZ6PX2Y df9w== X-Gm-Message-State: AG10YOQdkMNZUlRSdf1tHRQm5JntLhA3jvbLaDig85oVVa4NJQH+/166symMVp9sgBWp51Bb5VCN42DHeLOl8w== X-Received: by 10.194.57.201 with SMTP id k9mr3885007wjq.150.1455304891205; Fri, 12 Feb 2016 11:21:31 -0800 (PST) Original-Received: by 10.194.93.226 with HTTP; Fri, 12 Feb 2016 11:20:51 -0800 (PST) In-Reply-To: <87y4apyc7l.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:109150 Archived-At: > But your last version with `prog1' is ok. Are you happy with that one? I am happy that it works and much much better than my first version ( https://github.com/kaushalmodi/.emacs.d/blob/0b427ce554b1cade7f5fabb8ee4bfb704f6e497f/setup-files/setup-editing.el#L686-L730 ). I just wanted to go an extra mile and prevent the duplication of the conditions.. first time in the interactive form for settings the fn args and second time when deciding when to display the message. I just wanted to check if the "extra optimization" I thought of was possible. So the gist is.. what happens in interactive stays in interactive. :) Thanks.