From: Drew Adams <drew.adams@oracle.com>
To: Juri Linkov <juri@linkov.net>
Cc: contovob@tcd.ie, 30073@debbugs.gnu.org,
Tino Calancha <tino.calancha@gmail.com>
Subject: bug#30073: 27.0.50; dired-do-delete ignores customization for short answers
Date: Mon, 15 Jan 2018 16:48:15 -0800 (PST) [thread overview]
Message-ID: <af61ae6e-f6b3-44fa-b4dd-141b489ae140@default> (raw)
In-Reply-To: <87d12aaedz.fsf@mail.linkov.net>
> I agree that advising the yes/no confirmation is not good
> from a customization standpoint.
>
>> 2. Choosing a single prompt approach (e.g. `y-or-n-p' or
>> `yes-or-no-p') for all contexts might be appropriate for
>> some users, but it is probably not a great idea in general.
>
> Please see an optional argument ‘short’ that I added to my previous
> patch. It will allow using short answers even when customizable
> variable is nil where code authors deem appropriate.
I saw it. That's not the problem to solve, IMO.
It's not just about giving users a cleaner way to get
`y-or-n-p' behavior globally, in place of advising
`yes-or-no-p'. (I think/hope you agree with that much.)
But it's also not about letting code authors decide
which to use, even by overriding a user's preference.
There's no need for that at all, AFAICS. Authors
can already get "short" behavior anytime they want,
and overriding a user setting that way would not be
helpful.
You're solving the wrong problem, I think.
It's not only about moving from long to short. A user
can want to go the other way too. And it's definitely
not just about a systematic move in one direction or
the other.
Just as each _author_ can (and does) decide, for any
given context, which kind of confirmation prompting to
use, so can a _user_ make her own judgment about that.
We're just not giving her a way to do that, today.
We don't provide library authors with just a binary
choice: ALL of your confirmation prompts must be long
or ALL of them must be short. That would be silly.
For the exact same reasons we should allow _users_ the
same possibilities to judge and decide what behavior
they want here and there. An author gets to decide
that; so should users - a fortiori.
We just need to provide an easy-to-use way to choose.
That's what I've tried to do with `yes-no.el'. Other
approaches to solving that problem are possible. But
that's the problem to solve, IMO. Not just providing
a substitute for advising - another way to give users
an all-or-nothing choice. And not giving authors a
way to override a user's choice.
Users are different. They have different degrees of
familiarity with Emacs and different degrees of
confidence about the use of this or that part of Emacs.
And those things can and do change over time. The
first time you use an operation that deletes a file
you might well want it to make you confirm slowly.
After using it 1000 times you might want it to let
you just hit `y'. Or not.
>> 3. Even a given user might appreciate that a given prompting
>> context asks them using the slow approach (`yes-or-no-p')
>> at first, or most of the time, but she might sometimes,
>> or even generally after some experience, prefer that that
>> prompting context use a faster approach (e.g. `y-or-n-p').
>
> I'm not sure if we need more fine-grained customization.
> If the user decides that a short answer is enough, enough is
> enough.
I disagree. It's not about just a general movement,
everywhere from `yes-or-no-p' to `y-or-n-p'. It's
about the particular user and the particular context.
A given library might (from a given user's point of
view) inappropriately use one or the other approach.
It might use `yes-or-no-p' behavior everywhere,
annoying many users. Or it might inappropriately
use `y-or-n-p' behavior everywhere.
There is nothing that guarantees a match between an
author's idea of what is best overall and a user's
idea of what is best for her in a given context at
a given time.
Did you try `yes-no.el'? The implementation and
use are pretty simple - not a big deal.
next prev parent reply other threads:[~2018-01-16 0:48 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 21:41 bug#30073: 27.0.50; dired-do-delete ignores customization for short answers Juri Linkov
2018-01-11 3:00 ` Basil L. Contovounesios
2018-01-11 15:52 ` Eli Zaretskii
2018-01-11 17:34 ` Basil L. Contovounesios
2018-01-11 18:01 ` Eli Zaretskii
2018-01-11 19:39 ` Basil L. Contovounesios
2018-01-11 21:57 ` Juri Linkov
2018-01-11 21:54 ` Juri Linkov
2018-01-12 9:57 ` Eli Zaretskii
2018-01-13 22:38 ` Juri Linkov
2018-01-14 11:01 ` Tino Calancha
2018-01-14 22:53 ` Juri Linkov
2018-01-15 5:19 ` Eli Zaretskii
2018-01-15 23:02 ` Juri Linkov
2018-01-16 17:56 ` Eli Zaretskii
2018-01-17 22:56 ` Juri Linkov
2018-01-18 21:11 ` Juri Linkov
2018-01-15 17:01 ` Drew Adams
2018-01-15 23:13 ` Juri Linkov
2018-01-16 0:48 ` Drew Adams [this message]
2018-01-17 22:03 ` Juri Linkov
2018-01-18 3:36 ` Eli Zaretskii
2018-01-18 21:12 ` Juri Linkov
2018-01-21 21:46 ` Juri Linkov
2018-01-25 18:04 ` Drew Adams
2018-01-25 21:20 ` Juri Linkov
2018-01-25 21:48 ` Drew Adams
2018-01-26 7:57 ` Eli Zaretskii
2018-01-27 21:20 ` Juri Linkov
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=af61ae6e-f6b3-44fa-b4dd-141b489ae140@default \
--to=drew.adams@oracle.com \
--cc=30073@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=juri@linkov.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.