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: Lars Ingebrigtsen
Subject: Re: [PATCH] When deleting in bookmark menu, prompt for confirmation.
Date: Sun, 09 May 2021 11:55:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> That's true...  it's just that the prompting for "disabled commands" is
>> a bit excessive if what you really want is just to have a y/n prompt for
>> a command you consider dangerous. 
>
> Indeed, but maybe that can be adjusted ;-)

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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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