From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: RE: Use of minibuffer-prompt face when minibuffer is not involved
Date: Sat, 11 May 2019 06:52:31 -0700 (PDT) [thread overview]
Message-ID: <c7e501bb-9dd8-4b00-8647-d0731f2b2565@default> (raw)
In-Reply-To: <<83o949ecdc.fsf@gnu.org>>
> > > The question raised for emacs-devel by this thread
> > > is whether non-minbuffer prompting should have a
> > > face, and if so, which face.
> >
> > My answer was to this question. Let me repeat it to make it clear:
> > the difference between minibuffer prompts and
> > non-minibuffer prompts should be a purely internal one.
>
> And I agree 100%. I think it's a grave mistake to try to tell the
> user via faces whether some prompt/text is in the active minibuffer or
> not. That just confuses the user with no real gain.
>
> Active minibuffer is an internal detail. I wish it didn't exist at
> all, but our implementation forces us to have it. Exposing that to
> users is exactly the wrong idea.
Active minibuffer is in _no_ way "an internal detail".
It's about users knowing that the minibuffer is available
for editing.
And it's about users knowing that the minibuffer is then
the _only_ place/way to input their response. If it has
lost focus (e.g. by clicking another frame or by other
interactions with Emacs) then they need to refocus it to
reply to the minibuffer prompt.
There is a world of difference - user-observable - between
`read-char' (e.g. `y-or-n-p'), which takes no account of
focus, and reading input from the minibuffer. And yet the
difference is sometimes not obvious to users. Yes, a big
difference but not necessarily obvious.
In fact, it would be better in general if we made it
more obvious when the minibuffer is active (as opposed
to the same space being used as the echo area).
With my standalone minibuffer (separate frame) I do that
by shading the frame background differently. And I do
the same thing (but with a different shade) to indicate
that Isearch is active in that same area.
"Grave mistake"? Why do you say so? (No reason given.)
We (since Emacs 22, at least) now provide two different
faces for the mode-line, to show which window is active
(selected) - which has the focus. This is very similar:
the minibuffer is a buffer in a window. Users should
clearly see when it is focused for input ("active").
More generally still, when it comes to faces and text
properties, users deserve control - that's not something
to be imposed "internally".
No argument has been given yet supporting _why_ this
should be considered "internal". Just two opinions
strongly proclaiming that it _is_ an internal detail.
Why do you think so?
The behavior difference is user-observable. It should
be easily user-controllable.
next prev parent reply other threads:[~2019-05-11 13:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-10 18:35 Use of minibuffer-prompt face when minibuffer is not involved Kévin Le Gouguec
2019-05-10 20:52 ` Stefan Monnier
2019-05-10 21:59 ` Drew Adams
2019-05-10 22:36 ` Stefan Monnier
2019-05-11 6:25 ` Eli Zaretskii
2019-05-11 13:22 ` Kévin Le Gouguec
[not found] ` <<jwvftpm9buh.fsf-monnier+emacs@gnu.org>
[not found] ` <<83o949ecdc.fsf@gnu.org>
2019-05-11 13:52 ` Drew Adams [this message]
2019-05-11 14:11 ` Eli Zaretskii
2019-05-12 22:31 ` Richard Stallman
2019-05-12 23:32 ` Drew Adams
[not found] ` <<<jwvftpm9buh.fsf-monnier+emacs@gnu.org>
[not found] ` <<<83o949ecdc.fsf@gnu.org>
[not found] ` <<c7e501bb-9dd8-4b00-8647-d0731f2b2565@default>
[not found] ` <<83o949cc88.fsf@gnu.org>
2019-05-11 14:34 ` Drew Adams
2019-05-11 13:50 ` Solving bug#35564 (was: Use of minibuffer-prompt face when minibuffer is not involved) Kévin Le Gouguec
2019-05-11 14:13 ` Solving bug#35564 Stefan Monnier
[not found] <<<8736lmi2dg.fsf@gmail.com>
[not found] <<8736lmi2dg.fsf@gmail.com>
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c7e501bb-9dd8-4b00-8647-d0731f2b2565@default \
--to=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).