From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: master a30781399b3: * subr-x (eval-command-interactive-spec): New function. Date: Tue, 06 Jun 2023 12:10:45 +0100 Message-ID: <87a5xcg822.fsf@melete.silentflame.com> References: <168595059426.2523.2109338263713299231@vcs2.savannah.gnu.org> <20230605073635.19060C00613@vcs2.savannah.gnu.org> <87a5xeb41b.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 06 13:11:26 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Uay-0008eR-Hv for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Jun 2023 13:11:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6UaQ-0002wZ-Qp; Tue, 06 Jun 2023 07:10:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6UaP-0002wH-At for emacs-devel@gnu.org; Tue, 06 Jun 2023 07:10:49 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6UaN-0008PF-Qg for emacs-devel@gnu.org; Tue, 06 Jun 2023 07:10:49 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5E1475C0195; Tue, 6 Jun 2023 07:10:47 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 06 Jun 2023 07:10:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1686049847; x= 1686136247; bh=T3ZOJDjfkmW7Eu+zzxwN1XTO3TYdxzjqNihcY8RGYZo=; b=Z z/0+Cr1iS3EpOhb8/6m/ijgYMtZLQdM41EdAFyYY9LS8YSqA3sRRR9XEcv4sydOK WKrf2uZcl9mKlU2aCETfm75puu2tIyZZIoY1MEN7v2HaBbbjX2SYwQLHhQAn82IS UR6U238EfgjV7Fpc0YdCp9V4KeCBRUryC+wYyv6/PXL3qW52Evo6Mk7I/NsGo9Kb cmZckcAv0EwBzQRAphiI/zTCVXQSBDYo+Mp5fEE8++NudNhCMWcs0TaTbl67FCho FeVDNbMGsGuWjKQrHrZIN46Wr5IcfY+Y0L3AfCef6EwG3XvQnk8qQC98MXr0bIuE 0fQlYLHzc2L2CrWNCmN/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1686049847; x=1686136247; bh=T3ZOJDjfkmW7E u+zzxwN1XTO3TYdxzjqNihcY8RGYZo=; b=YVw7J0h8iCWP/GsLNomupeqA/KJsW KbMw/WC0TXWporoUvsgW6axzZRXzzyhyZKlx7HZpU5JFkE5UTd9UFe8VoA2lqhRe 791QuLUfA4GSvPzzNO71+89hYmINTWHSjtb8hGrKwVEbcSq6/nZQqPFcIv3ZooUM ydMFcEN5SdyCsWhux6039tyEJCbkvEWqf7xD6bTxG7nBA7VB8AVKeL76nvdffVZp HN7fmXGPfuZetPC3SlSqTyhc63Wdgn1sG2pRA3M/PTceZ9BG3YLDm4XdCxhkluTl jWxEirio5msghjPeTg/WFT5cJyFJiWAr3rocg+PdWSzuSBlx2A8jc70Rg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkfgggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpedtffdvffeuleeuvdetkedvveehgfehvdegvefghfevudek geegleevgeejkeetkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jun 2023 07:10:46 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 184C27E4CF1; Tue, 6 Jun 2023 12:10:45 +0100 (BST) In-Reply-To: <87a5xeb41b.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 05 Jun 2023 10:24:16 +0000") Received-SPF: pass client-ip=66.111.4.27; envelope-from=spwhitton@spwhitton.name; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306660 Archived-At: Hello, On Mon 05 Jun 2023 at 10:24AM GMT, Philip Kaludercic wrote: > Sean Whitton writes: > >> branch: master >> commit a30781399b3ef48150b9cb13cb0aeba7086c2d9e >> Author: Sean Whitton >> Commit: Sean Whitton >> >> * subr-x (eval-command-interactive-spec): New function. >> --- >> etc/NEWS | 5 +++++ >> lisp/emacs-lisp/nadvice.el | 2 ++ >> lisp/emacs-lisp/subr-x.el | 7 +++++++ >> 3 files changed, 14 insertions(+) >> >> diff --git a/etc/NEWS b/etc/NEWS >> index 9529282f047..910472e5519 100644 >> --- a/etc/NEWS >> +++ b/etc/NEWS >> @@ -648,6 +648,11 @@ Since circular alias chains now cannot occur, 'function-alias-p', >> 'indirect-function' and 'indirect-variable' will never signal an error. >> Their 'noerror' arguments have no effect and are therefore obsolete. >> >> +--- >> +** New function 'eval-command-interactive-spec' in the subr-x library. >> +This function evaluates a command's interactive form and returns the >> +resultant list. > > What is the motivation for this feature? When writing certain kinds of wrapper commands it's useful to be able to prompt the user in just the way that an existing command does, without reproducing that code. -- Sean Whitton