From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs 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 Message-ID: <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> Reply-To: Adrian Robert , 4381@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253662387 29953 80.91.229.12 (22 Sep 2009 23:33:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2009 23:33:07 +0000 (UTC) Cc: 4381@emacsbugs.donarmstrong.com, Erik Charlebois To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 23 01:33:00 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MqEqx-0001KV-EN for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 01:33:00 +0200 Original-Received: from localhost ([127.0.0.1]:40540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqEqw-00052f-ML for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Sep 2009 19:32:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqElL-0002m5-Vp for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 19:27:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqElH-0002lL-8E for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 19:27:11 -0400 Original-Received: from [199.232.76.173] (port=56078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqElG-0002lE-Rq for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 19:27:06 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:38825) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqElG-0005il-EG for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 19:27:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqElF-0007Rf-9y for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 19:27:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MNR34a021521; Tue, 22 Sep 2009 16:27:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8MNP5Mr021183; Tue, 22 Sep 2009 16:25:05 -0700 Resent-Date: Tue, 22 Sep 2009 16:25:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com 2Resent-Date: Tue, 22 Sep 2009 23:25:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125366145220230 (code B ref 4381); Tue, 22 Sep 2009 23:25:05 +0000 Original-Received: (at 4381) by emacsbugs.donarmstrong.com; 22 Sep 2009 23:17:32 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MNHV7o020225 for <4381@emacsbugs.donarmstrong.com>; Tue, 22 Sep 2009 16:17:32 -0700 Original-Received: by qw-out-2122.google.com with SMTP id 3so75949qwe.13 for <4381@emacsbugs.donarmstrong.com>; Tue, 22 Sep 2009 16:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=7NSHiTVvvV9ZGT04SLxKbDmwrTSJdO0fnnjQWNTSQKE=; b=rn4XK/ni4GRwvVnTTvOqWwmUe2vxjlAgQ5NwUy6KwKaVofzZAk0/NReaofKPz0qQZT XiWziBctoLZ59O2wmXmTDEJ60taWcNw7JtroFHaIlnCtLkvOWaYJ6BzfdAURsIIn3qYF hy0A9crE+/XiQGqV+B7DBbVuUlHCR4CXOTzws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=XVUqEDReuqmyBDOBQ8CA1aPV9xZX1JMuJ8DPE4FyAAxWftPEb70cL7xEOj/YmbNObU KpqAspbNqtCy8bN+AWy/x1panvPdBRX9r1Z91opjSGR4/jyOqRibd6hNsK5cz0KrCceW uuF6c0XKRtL4r619paqhY75JzoYnq+IcqvEF0= Original-Received: by 10.224.14.81 with SMTP id f17mr1333865qaa.124.1253661450889; Tue, 22 Sep 2009 16:17:30 -0700 (PDT) Original-Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 21sm141177qyk.8.2009.09.22.16.17.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Sep 2009 16:17:30 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Tue, 22 Sep 2009 19:27:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31374 Archived-At: 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"))