From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Erik Charlebois Newsgroups: gmane.emacs.bugs Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Date: Sun, 13 Sep 2009 14:56:36 -0700 Message-ID: <63104FCA-1605-4369-B4D6-D6C4A5D24952@gmail.com> References: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> Reply-To: Erik Charlebois , 4381@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252879643 1867 80.91.229.12 (13 Sep 2009 22:07:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 22:07:23 +0000 (UTC) Cc: 4381@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 14 00:07:15 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 1MmxE2-0001W5-3Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 00:07:15 +0200 Original-Received: from localhost ([127.0.0.1]:40202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmxE1-0007tA-42 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 18:07:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmxDw-0007ss-65 for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 18:07:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmxDr-0007qw-4S for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 18:07:07 -0400 Original-Received: from [199.232.76.173] (port=58388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmxDr-0007qt-1P for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 18:07:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45738) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MmxDq-000257-8r for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 18:07:02 -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 n8DM6xVa017092; Sun, 13 Sep 2009 15:07:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8DM54wo016333; Sun, 13 Sep 2009 15:05:04 -0700 Resent-Date: Sun, 13 Sep 2009 15:05:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Erik Charlebois Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com 2Resent-Date: Sun, 13 Sep 2009 22:05:04 +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.125287900514592 (code B ref 4381); Sun, 13 Sep 2009 22:05:04 +0000 Original-Received: (at 4381) by emacsbugs.donarmstrong.com; 13 Sep 2009 21:56:45 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-px0-f185.google.com (mail-px0-f185.google.com [209.85.216.185]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8DLuh89014578 for <4381@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 14:56:44 -0700 Original-Received: by pxi15 with SMTP id 15so1982908pxi.25 for <4381@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 14:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=EI8YBGOy+Bkh7em/k20IQSbaydmmVa+EM97B/HXUFYU=; b=gR+e1jr3S3glNUcdAUX901YCyPasb2RSd2jZIGBAgBnBoOvR8H/4p+gc48EUdYrVfS kUraqlCrWbTftLfg9HH9LQmNz84DTmdR1soSnM38r1Ja1eI0DMM7dxEaZe3GGzMudiL4 5sShVXmn2JM5jjVUnS9UcnlFSWsx1y3IFKu/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=C2ykgwI5fqX4BRhqSb59q1fglIu3s0qOvdmOd6ns9UHKl1ZxiVNUx80fUMMDOCpB7x /Tkq6+F9pS5Rfjk4xUV2M6FRPIicq1KIY/ePtGndRuKjxNa/JaZjs8JgduJInVe0FUjd UE+Rm7a5OGHciikBP/THRp24As5vCqK/lEeZM= Original-Received: by 10.114.45.13 with SMTP id s13mr9964207was.167.1252878998180; Sun, 13 Sep 2009 14:56:38 -0700 (PDT) Original-Received: from ?192.168.123.51? (64-46-22-205.dyn.novuscom.net [64.46.22.205]) by mx.google.com with ESMTPS id 22sm3137196pzk.6.2009.09.13.14.56.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Sep 2009 14:56:37 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1076) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 13 Sep 2009 18:07:07 -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:31061 Archived-At: The minimal .emacs that shows the problem (extracted by digging into the color-themes package): (setq default-frame-alist '((background-color . "white"))) (custom-set-faces '(region ((t (:background "red"))))) The face setting is not honoured (reverts to ns_selection_color). If I do... (set-face-attribute 'region nil :background "red") instead of custom-set-faces, it works fine (but color-theme uses custom-set-faces). Erik Charlebois erikcharlebois@gmail.com On 2009-09-09, at 11:27 PM, Glenn Morris wrote: > reassign 4381 emacs,ns > stop > > Erik Charlebois wrote: > >> term/ns-win.el line 1068 sets the face background for 'region to >> "ns_selection_color", which is defaulted to lightgoldenrod2 on Macs >> and looks rather harsh on dark backgrounds. My problem is that >> ns-win.el is eval'd after your .emacs/init.el and will override >> any color choices you made for 'region. > > ns-win.el is compiled into the Emacs executable, and therefore is > loaded before your .emacs file is processed. So while there may be a > problem here, it probably is something different. > > Please post the minimal .emacs that shows the problem, and hopefully a > Mac user can help. >