From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: `interactive-form` symbol property Date: Sun, 24 Jun 2018 11:56:15 -0400 Message-ID: References: <20180624121111.28772.8847@vcs0.savannah.gnu.org> <20180624121113.215CF206CC@vcs0.savannah.gnu.org> <87k1qokxa7.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529855716 11948 195.159.176.226 (24 Jun 2018 15:55:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2018 15:55:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Karl Fogel , emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 24 17:55:12 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fX7M4-0002to-MK for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 17:55:08 +0200 Original-Received: from localhost ([::1]:42307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX7OA-0002uY-4u for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 11:57:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX7NU-0002uT-JJ for emacs-devel@gnu.org; Sun, 24 Jun 2018 11:56:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX7NR-0003uO-FM for emacs-devel@gnu.org; Sun, 24 Jun 2018 11:56:36 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX7NR-0003u6-9k for emacs-devel@gnu.org; Sun, 24 Jun 2018 11:56:33 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w5OFuK2I021713; Sun, 24 Jun 2018 11:56:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C791167A3B; Sun, 24 Jun 2018 11:56:15 -0400 (EDT) In-Reply-To: <87k1qokxa7.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 24 Jun 2018 18:40:48 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6314=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6314> : inlines <6714> : streams <1790625> : uri <2663392> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226657 Archived-At: > FWIW, I use it in a handful of places in my user-init-file to avoid > copying the interactive spec of some command I'm mimicking. As a poor > example, I've written a couple of commands akin to browse-url, whose > interactive-form I set to the value of (interactive-form 'browse-url). Interesting case, indeed. You can do (defun my-foo () (interactive (advice-eval-interactive-spec (cadr (interactive-form 'bar)))) ...) Maybe we should promote `advice-eval-interactive-spec` to `eval-interactive-spec`? Stefan