all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tino Calancha <tino.calancha@gmail.com>
Cc: 28525@debbugs.gnu.org, npostavs@users.sourceforge.net
Subject: bug#28525: 26.0.60; dired-delete-file: Accept y/n if yes-or-no-p is aliased to y-or-n-p
Date: Thu, 21 Sep 2017 11:15:31 +0300	[thread overview]
Message-ID: <83zi9oeacc.fsf@gnu.org> (raw)
In-Reply-To: <87mv5pn1dz.fsf@calancha-pc> (message from Tino Calancha on Wed,  20 Sep 2017 18:51:52 +0900)

> From: Tino Calancha <tino.calancha@gmail.com>
> Date: Wed, 20 Sep 2017 18:51:52 +0900
> Cc: npostavs@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.





  reply	other threads:[~2017-09-21  8:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-20  9:51 bug#28525: 26.0.60; dired-delete-file: Accept y/n if yes-or-no-p is aliased to y-or-n-p Tino Calancha
2017-09-21  8:15 ` Eli Zaretskii [this message]
2017-09-30 13:00   ` Tino Calancha
2017-10-01  4:06     ` Tino Calancha
2017-10-01 23:15       ` Drew Adams
2017-10-02  5:40         ` Tino Calancha
2017-10-02 13:33           ` Drew Adams
2017-10-03  8:02             ` Tino Calancha
2017-10-02 17:41       ` Eli Zaretskii
2017-10-03  8:00         ` Tino Calancha
2017-10-03 11:10           ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zi9oeacc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=28525@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    --cc=tino.calancha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.