emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master a30781399b3: * subr-x (eval-command-interactive-spec): New fu


From: Sean Whitton
Subject: Re: master a30781399b3: * subr-x (eval-command-interactive-spec): New function.
Date: Tue, 06 Jun 2023 12:10:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hello,

On Mon 05 Jun 2023 at 10:24AM GMT, Philip Kaludercic wrote:

> Sean Whitton <spwhitton@spwhitton.name> writes:
>
>> branch: master
>> commit a30781399b3ef48150b9cb13cb0aeba7086c2d9e
>> Author: Sean Whitton <spwhitton@spwhitton.name>
>> Commit: Sean Whitton <spwhitton@spwhitton.name>
>>
>>     * 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]