all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adrian Robert <adrian.b.robert@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 4381@emacsbugs.donarmstrong.com,
	Erik Charlebois <erikcharlebois@gmail.com>
Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs
Date: Tue, 22 Sep 2009 19:19:00 -0400	[thread overview]
Message-ID: <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> (raw)
In-Reply-To: <jwvws3t20v9.fsf-monnier+emacsbugreports@gnu.org>


On Sep 20, 2009, at 9:37 AM, Stefan Monnier wrote:

>> (custom-set-faces '(region ((t (:background "ns_selection_color")))))
>
> Why not change faces.el directly?

I guess I'd prefer to remove this feature completely over hacking  
into faces.el.  Colors there are defined for dark and light  
backgrounds, which is not supported by the NS implementation.  It  
would be nice to allow the default system-wide selection color to be  
used under NS, but I guess if this is not being implemented on GTK /  
etc. it is not considered important by emacs users.

However, I'm wondering why OP was seeing lightgoldenrod2 at all --  
this should only be used if there is no value for AppleHighlightColor  
set in the defaults, which there should be.

Erik, what do you get from a "defaults read NSGlobalDomain  
AppleHighlightColor"?

Incidentally, another solution (posted for bug 3434) is:

(if (not (face-attribute 'region :background))
     (set-face-background 'region "ns_selection_color"))






  reply	other threads:[~2009-09-22 23:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-18 23:57 bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Adrian Robert
2009-09-19  4:19 ` Erik Charlebois
2009-09-20 13:37   ` Stefan Monnier
2009-09-22 23:19     ` Adrian Robert [this message]
2009-09-23 22:44       ` Stefan Monnier
2009-09-24  3:19         ` Adrian Robert
2009-09-24 15:14           ` Stefan Monnier
2009-09-24 16:15             ` Adrian Robert
2009-09-24 17:35               ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2009-09-09  7:23 Erik Charlebois
2009-09-10  6:27 ` Glenn Morris
2009-09-13 21:56   ` Erik Charlebois
2009-09-14  1:09     ` Glenn Morris
2009-09-14  6:07       ` Erik Charlebois

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=82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com \
    --to=adrian.b.robert@gmail.com \
    --cc=4381@emacsbugs.donarmstrong.com \
    --cc=erikcharlebois@gmail.com \
    --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 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.