From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: `interactive-form` symbol property Date: Sun, 24 Jun 2018 18:40:48 +0300 Message-ID: <87k1qokxa7.fsf@tcd.ie> References: <20180624121111.28772.8847@vcs0.savannah.gnu.org> <20180624121113.215CF206CC@vcs0.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529854772 12415 195.159.176.226 (24 Jun 2018 15:39:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2018 15:39:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Karl Fogel , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 24 17:39:28 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 1fX76t-000381-0c for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 17:39:27 +0200 Original-Received: from localhost ([::1]:42284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX78y-0000Qn-K5 for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2018 11:41:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX78Q-0000Qh-HM for emacs-devel@gnu.org; Sun, 24 Jun 2018 11:41:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX78M-0005H7-KM for emacs-devel@gnu.org; Sun, 24 Jun 2018 11:41:02 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:35874) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fX78M-0005GV-Bn for emacs-devel@gnu.org; Sun, 24 Jun 2018 11:40:58 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id u18-v6so2869148wmc.1 for ; Sun, 24 Jun 2018 08:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=EjODQZG5cajfRvEtqFAdNxg2C1MWURjoIMlbnZM//ZQ=; b=iHJbOJqlaFncKr0AkvY0KSGHCg95gIREfOwwz982v+GIo+J3JST4t880uSjWEtn5LU F2FRNfJ+2GqE0eJyc2sRrZ1tte4R/zPieg1mVed0OA6/saHFD66+uQlXg/GoSnum0HHM eUMySOibDvk6eP6tT4Dp2vYz3Fo63nkXE/vQUmwsa1myh6LBlKlb18eISTVgz9zaYE46 5y7NRqsreWMpkHLPBSOTLrum9cCflgXXAK2nIwFs5JMAOobdfIXY8xZpywe5uc8gOWOJ zIw0jDqCap+E4yMEl6dotT7siqG2cFuMXTJNoGxUAsFIldSX1I8+8R/yS83ZVArKcAxU WLFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=EjODQZG5cajfRvEtqFAdNxg2C1MWURjoIMlbnZM//ZQ=; b=Rh2s9o9Dqg3EWihuikrXkr2HY9Kjyss1FgxmrFV3h9615iWW1TPw6EnBeANLieV0tK eydzPS+xiQwdxkPqMowFNF+Y8qEpdCe0R2JWESXa/EuOXnkHLcz7SllbW9XYCUbtSjJp FcUgv2RgYp3CbgAQ1Y6b2pvKd43WPVE9a2VNZ22BYYStCVCTOCmkEF7dI9bZwAwbWkot bq3E9uCfGramlYG2E3wkjZaGQoiKP+No+ovKqxN6De11tAGNk98IVRbEb+Ya2QG+KTRI HLk/iSE6gkrVmJHP8pa20Hj6C53vXmXtsvFLVI/ab9yGDvyzZB/sLR+XCwQwTkL041C7 SASg== X-Gm-Message-State: APt69E0fh2Ye1SmaLlG9BFRFS71eDWzSt/XN5kfBaiYKOHFP69EwMK4O Rxy9Uho/cimEfG0Lp229qgVVBA== X-Google-Smtp-Source: ADUXVKJTLiCcYd6J8uW6dEX0smgg2imMEdriGuSmlKgkiWoBotP2/Vus8wS2CGXehMc77EUe9cPEuQ== X-Received: by 2002:a1c:58d1:: with SMTP id m200-v6mr7400629wmb.160.1529854856261; Sun, 24 Jun 2018 08:40:56 -0700 (PDT) Original-Received: from localhost (adsl-181.91.140.91.tellas.gr. [91.140.91.181]) by smtp.gmail.com with ESMTPSA id b190-v6sm7444690wma.24.2018.06.24.08.40.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Jun 2018 08:40:55 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 24 Jun 2018 09:54:14 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 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:226655 Archived-At: Stefan Monnier writes: >>> +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 a quick search seems to indicate that this `interactive-form` > property is not used anywhere (not within Emacs, not within GNU ELPA, > and not within the few other Elisp packages I had lying around for > a quick search). > > Maybe, rather than document it, we should obsolete it? 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). This is obviously no reason to hold back on obsoleting the property, but I'm still curious whether there's another way to be as lazy as I currently am about copying interactive specs in this way. -- Basil