bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#30073: 27.0.50; dired-do-delete ignores customization for short answ


From: Basil L. Contovounesios
Subject: bug#30073: 27.0.50; dired-do-delete ignores customization for short answers
Date: Thu, 11 Jan 2018 17:34:21 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> Juri Linkov <juri@linkov.net> writes:
>> 
>> > I customized ‘yes-or-no-p’ in ~/.emacs to short answers:
>> >
>> >   (fset 'yes-or-no-p 'y-or-n-p)
>> >
>> > [...]
>
> [...]
>
> Indeed, this horse has been beaten to death already.  The current
> solution is for you to set dired-deletion-confirmer to y-or-n-p.
> Admittedly, that's not a very user-friendly customization method, but
> then neither is fset.

FWIW, I find

  (advice-add 'yes-or-no-p :override #'y-or-n-p)

to be a slightly user-friendlier alternative to

  (fset 'yes-or-no-p 'y-or-n-p)

as the former is at least reported by the help system.

-- 
Basil





reply via email to

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