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: [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec Date: Sun, 24 Jun 2018 17:44:52 +0300 Message-ID: <83d0wgtfa3.fsf@gnu.org> References: <20180624121111.28772.8847@vcs0.savannah.gnu.org> <20180624121113.215CF206CC@vcs0.savannah.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529851409 18173 195.159.176.226 (24 Jun 2018 14:43:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2018 14:43:29 +0000 (UTC) Cc: 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 16:43:25 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 1fX6Ef-0004dt-3E for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 16:43:25 +0200 Original-Received: from localhost ([::1]:42164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX6Gk-0007sW-Pj for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 10:45:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX6GC-0007s2-QJ for emacs-devel@gnu.org; Sun, 24 Jun 2018 10:45:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX6GB-0003Eb-UJ for emacs-devel@gnu.org; Sun, 24 Jun 2018 10:45:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX6G7-0003C3-MO; Sun, 24 Jun 2018 10:44:55 -0400 Original-Received: from [176.228.60.248] (port=4500 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fX6G7-0000zJ-4R; Sun, 24 Jun 2018 10:44:55 -0400 In-reply-to: (message from Stefan Monnier on Sun, 24 Jun 2018 09:42:39 -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:226649 Archived-At: > From: Stefan Monnier > Date: Sun, 24 Jun 2018 09:42:39 -0400 > Cc: Karl Fogel > > > +If you wish to override a primitive interactive specification, just > > +set the @code{interactive-form} property of the primitive function's > > +symbol (@pxref{Using Interactive}). There is no need to edit C code > > +and recompile Emacs. > > You can also use advice-add for the same purpose (it's more > complicated, but it's arguably better behaved). And I wonder whether this text belongs to the "Internals" appendix. I think its discoverability there will be too low. Why not put it in "Using Interactive", instead of cross-referencing there?