unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Stefan Kangas <stefan@marxist.se>
Cc: "40750@debbugs.gnu.org" <40750@debbugs.gnu.org>,
	ndame <ndame@protonmail.com>
Subject: bug#40750: [External] : bug#40750: Use error face for errors
Date: Sat, 25 Sep 2021 15:46:44 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488CD0C3DF615CFF84D751DF3A59@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87ee9dnzp5.fsf@gnus.org>

> > I think having a face here would be interesting, even if it just
> > looks like the default face.  That would open the door for
> > experimentation in third-party themes, and perhaps they will
> > come up with some good ideas that we will want to imitate.
> 
> Yes, that's a good point.

I disagree.  Globally imposing a single face here,
even if by default it is face `default', is quite
the wrong thing to do.
___

What should be done, I think:

Add a user option, defaulting to no change from
the traditional behavior, which causes error and
warning messages to preserve text properties on
the strings they use.

That lets code construct error messages using
any faces (or no faces) that it judges are
appropriate for a given context.

The option gives users control.  By default
nothing is changed.  The non-default option
value gives code control over the appearance.
___

I said the same thing long ago wrt minibuffer
prompting, and that was unfortunately ignored.
As a result we now have a blanket treatment:
a single face for all minibuffer prompts.

Emacs can easily, and should, do better.  It
should provide more flexibility to code for
messaging.
___

I said the same thing long ago wrt completion
return values.  This was partially implemented,
at least.

Code should be able to control the appearance
of text it uses when interacting with users.
And users should be able to override this or
(better) configure it.






  reply	other threads:[~2021-09-25 15:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 18:54 bug#40750: Use error face for errors ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-21 16:06 ` Lars Ingebrigtsen
2021-01-21 17:35   ` Basil L. Contovounesios
2021-01-21 17:38     ` Lars Ingebrigtsen
2021-09-25  2:41   ` Stefan Kangas
2021-09-25  2:42     ` Lars Ingebrigtsen
2021-09-25 15:46       ` Drew Adams [this message]
2021-09-25 16:59         ` bug#40750: [External] : " Stefan Kangas
2022-05-23 11:55           ` Lars Ingebrigtsen
2021-11-02  6:31 ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=SJ0PR10MB5488CD0C3DF615CFF84D751DF3A59@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=40750@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=ndame@protonmail.com \
    --cc=stefan@marxist.se \
    /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).