From: storm@cua.dk (Kim F. Storm)
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [lennart.borgman@gmail.com: Re: map-y-or-n does not use minibuffer-prompt face]
Date: Tue, 27 Feb 2007 11:02:35 +0100 [thread overview]
Message-ID: <m3irdnj4uc.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1HLwv2-0001pp-BT@fencepost.gnu.org> (Richard Stallman's message of "Tue\, 27 Feb 2007 02\:38\:40 -0500")
Richard Stallman <rms@gnu.org> writes:
> Since then Lennart has pointed out that several other minibuffer
> prompts also lack fontification, notably isearch, query-replace, and
> y-or-n-p.
>
> Shall we fix those too?
>
> Isearch, definitely.
>
> However, now I have second thoughts about this for map-y-or-n. The
> main purpose of this face is to more clearly separate the prompt from
> the input that follows it. That purpose does not apply to y-or-n-p,
> or to map-y-or-n. However, to the extent that this face also helps
> show the user that Emacs is asking some sort of question, it is useful
> to use the face for other kinds of questions.
>
> So, should we use it for y-or-n-p and map-y-or-n and query-replace,
> or not?
To easier see the impact of this, I set the bold attribute on the
minibuffer-prompt face -- actually quite nice effect IMO. It makes
the _questions_ in the minibuffer stand out from ordinary _messages_
in the echo area.
With this setting, it seems rather odd that SOME questions are
asked in the minibuffer-prompt face, and other are not.
E.g. doing M-% a RET b RET
Asks three questions:
1) Query replace:
2) Query replace a by:
3) Query replace a by b (? for help):
The first two are in minibuffer-prompt, the third is not,
so it does not stand out as a question. IMO that's a bug.
Similar for y-or-n-p questions ... they require user attention
so they should be in the minibuffer-prompt face.
Otherwise, we need some other face for such questions (e.g.
a `question' face.) which are for y-or-n-p and yes-and-no-p
It could by default be derived from minibuffer-prompt face.
But for now, I think minibuffer-prompt face is sufficient.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2007-02-27 10:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-26 3:27 [lennart.borgman@gmail.com: Re: map-y-or-n does not use minibuffer-prompt face] Richard Stallman
2007-02-26 10:26 ` Kim F. Storm
2007-02-26 16:49 ` Lennart Borgman (gmail)
2007-02-27 7:38 ` Richard Stallman
2007-02-27 8:51 ` Lennart Borgman (gmail)
2007-02-27 15:05 ` Drew Adams
2007-02-27 15:11 ` David Kastrup
2007-02-27 16:18 ` Lennart Borgman (gmail)
2007-02-27 16:36 ` Mathias Dahl
2007-02-27 17:00 ` Drew Adams
2007-02-27 17:44 ` Lennart Borgman (gmail)
2007-02-27 9:31 ` Miles Bader
2007-02-27 22:20 ` Miles Bader
2007-02-27 23:32 ` Lennart Borgman (gmail)
2007-02-28 0:41 ` Miles Bader
2007-02-28 0:58 ` Lennart Borgman (gmail)
2007-02-28 8:55 ` Kim F. Storm
2007-02-28 9:27 ` Lennart Borgman (gmail)
2007-02-28 11:14 ` Kim F. Storm
2007-02-28 11:39 ` Lennart Borgman (gmail)
2007-02-27 10:02 ` Kim F. Storm [this message]
2007-02-28 2:37 ` Richard Stallman
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=m3irdnj4uc.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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).