Subject: Re: bug#30073: 27.0.50; dired-do-delete ignores customization for short answers

From: "Basil L. Contovounesios" <[email-masked]>
Date: Thu, 11 Jan 2018 17:34:21 +0000

Eli Zaretskii <[email-masked]> writes:

>> Juri Linkov <[email-masked]> 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