GNU bug report logs -
#28525
26.0.60; dired-delete-file: Accept y/n if yes-or-no-p is aliased to y-or-n-p
Previous Next
Reported by: Tino Calancha <tino.calancha <at> gmail.com>
Date: Wed, 20 Sep 2017 15:15:03 UTC
Severity: normal
Tags: patch
Merged with 30073
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: Tino Calancha <tino.calancha <at> gmail.com>
> Date: Wed, 20 Sep 2017 18:51:52 +0900
> Cc: npostavs <at> users.sourceforge.net
>
> The following commit
>
> dired-do-delete: Allow to delete dirs recursively without prompts
> (cbea38e5c4af5386192fb9a48ef4fca5080d6561)
>
> doesn't consider the case when an user has aliased 'yes-or-no-p'
> to 'y-or-n-p'. That's annoying if you are used to the previous
> behaviour. I do.
> Recently, I had a private communication with an user whom
> complained about this recent change.
>
> Not sure about the ideal fix. The following patch work
> around the issue adding a new function
> 'dired-y-or-n-or-a-p', which is called when yes-or-no-p is aliased to
> y-or-n-p. This function is y-or-n-p with an additional
> possible answer '!' (aka, automatic), as in query-replace.
People who make such aliases will have to change their aliases to
support the 3rd option, right. What function would they use for that?
Does such a function exist? If it doesn't exist, then what is the
complaint wrt this change, exactly?
We can be asked to do one of the following:
. continue supporting y-or-n-p as a defalias of yes-or-no-p, with
the understanding that the users who do that will not have a way
to use the new functionality; or
. allow users to specify a function that accepts single-key
responses, like y-or-n-p, but also allows to select the new
functionality, e.g., with '!'
The solution in each of these cases is different. So we should first
decide which problem are we trying to solve.
This bug report was last modified 7 years and 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.