From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `interactive-form` symbol property Date: Sun, 24 Jun 2018 19:20:24 +0300 Message-ID: <836028tauv.fsf@gnu.org> References: <20180624121111.28772.8847@vcs0.savannah.gnu.org> <20180624121113.215CF206CC@vcs0.savannah.gnu.org> <87k1qokxa7.fsf@tcd.ie> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529857116 7273 195.159.176.226 (24 Jun 2018 16:18:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2018 16:18:36 +0000 (UTC) Cc: contovob@tcd.ie, kfogel@red-bean.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 24 18:18:31 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 1fX7ic-0001hH-M0 for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 18:18:26 +0200 Original-Received: from localhost ([::1]:42461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX7kj-0001AA-RR for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 12:20:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX7kd-0001A0-PP for emacs-devel@gnu.org; Sun, 24 Jun 2018 12:20:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX7kZ-0006pT-VB for emacs-devel@gnu.org; Sun, 24 Jun 2018 12:20:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX7kZ-0006pJ-LA; Sun, 24 Jun 2018 12:20:27 -0400 Original-Received: from [176.228.60.248] (port=2739 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fX7kZ-0007Tm-0U; Sun, 24 Jun 2018 12:20:27 -0400 In-reply-to: (message from Stefan Monnier on Sun, 24 Jun 2018 11:56:15 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:226659 Archived-At: > From: Stefan Monnier > Date: Sun, 24 Jun 2018 11:56:15 -0400 > Cc: Karl Fogel , emacs-devel@gnu.org > > > 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`? Any reason you dislike the interactive-form property so much that you are willing to promote anything else instead? ;-)