unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Mitchel Humpherys <mitch.special@gmail.com>
Cc: Kristoffer Gronlund <krig@koru.se>, emacs-devel@gnu.org
Subject: RE: [PATCH] * etc/themes/wombat-theme.el: Don't set foreground on region
Date: Mon, 14 Mar 2016 10:31:47 -0700 (PDT)	[thread overview]
Message-ID: <f8b8344a-2201-4512-99e3-9c23d4a2c157@default> (raw)
In-Reply-To: <87poux9dpm.fsf@gmail.com>

> >> > Setting a foreground color on the `region' face is slightly
> >> > annoying.
> >> > This is subjective, of course, but the consensus among other
> >> > themes and around the web is to *not* set a foreground color
> >> > on the region face.
> >>
> >> Any objections to this?  I should have mentioned that the reason
> >> it's slightly annoying is because setting a foreground color hides
> >> existing syntax highlighting within the region text.
> >
> > A particular theme can do anything its authors and users want,
> > of course.  But wrt the general question of whether region (aka
> > selection) highlighting should override other highlighting, see
> > Emacs bug #15899.
> >
> > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15899
> >
> > IMO, selection highlighting should, at least by default, visibly
> > cover the entire selection.  Otherwise, it is not always clear
> > what the region limits are.
> 
> Just to be clear, when I said "syntax highlighting" I meant it in the
> general sense of colors applied to the *foreground* of code in order to
> highlight the syntax of the language.  I believe you're referring to
> background highlighting, which shouldn't be affected by this patch.

I too was speaking of foreground highlighting (as well as background
highlighting).  I was speaking directly to your point about "setting
a foreground color hides existing syntax highlighting within the
region text."

Please see the referenced bug thread, if you are interested in the
question.  It is about whether, when, and why region highlighting
(foreground, background, or both) should hide other highlighting.



      reply	other threads:[~2016-03-14 17:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23  1:04 [PATCH] * etc/themes/wombat-theme.el: Don't set foreground on region Mitchel Humpherys
2016-02-28  6:05 ` Mitchel Humpherys
2016-02-28  6:21   ` Lars Ingebrigtsen
2016-02-28  8:13     ` Kristoffer Grönlund
2016-02-28 15:53   ` Drew Adams
2016-03-14 17:22     ` Mitchel Humpherys
2016-03-14 17:31       ` Drew Adams [this message]

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=f8b8344a-2201-4512-99e3-9c23d4a2c157@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=krig@koru.se \
    --cc=mitch.special@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 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).