emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] When deleting in bookmark menu, prompt for confirmation.


From: Stefan Monnier
Subject: Re: [PATCH] When deleting in bookmark menu, prompt for confirmation.
Date: Sun, 09 May 2021 14:01:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Kangas [2021-05-09 10:04:57] wrote:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>> Sure, we could extend the `disabled' machinery easily enough.  For
>> instance, we could allow arbitrary functions, and then recommend that
>> people say
>>
>> (put 'some-command 'disabled 'y-or-n-p)
>>
>> in their Emacs files to confirm before calling?  Should be pretty
>> trivial to implement.
>
> I'm wondering what the use-case is here.  If there are any commands
> where something like this would be useful, shouldn't we just treat that
> as a bug and add a prompt?
>
> Or do you have any commands in mind where users might want to add a
> prompt, but we would not?

I think what this is getting at is to have a standardized way to have
and control such prompts.  Whether it's done via symbol-properties,
inline code, advice-add, or younameit is "an implementation detail".


        Stefan




reply via email to

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