GNU bug report logs - #30073
27.0.50; dired-do-delete ignores customization for short answers

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Wed, 10 Jan 2018 21:45:02 UTC

Severity: normal

Tags: patch

Merged with 28525

Found in versions 26.0.60, 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: <juri <at> linkov.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 30073 <at> debbugs.gnu.org
Subject: bug#30073: 27.0.50; dired-do-delete ignores customization for short answers
Date: Thu, 11 Jan 2018 17:34:21 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Juri Linkov <juri <at> 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




This bug report was last modified 7 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.