From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Erik Charlebois , 4381@debbugs.gnu.org Resent-From: Erik Charlebois Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 09 Sep 2009 07:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4381 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125248103128085 (code B ref -1); Wed, 09 Sep 2009 07:30:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2009 07:23:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,GMAIL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n897NnWO028082 for ; Wed, 9 Sep 2009 00:23:50 -0700 Received: from mx10.gnu.org ([199.232.76.166]:38475) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MlHWv-0001ER-60 for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MlHWt-00064r-MC for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:48 -0400 Received: from mx20.gnu.org ([199.232.41.8]:8363) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MlHWt-00061i-7B for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:47 -0400 Received: from mail-px0-f175.google.com ([209.85.216.175]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlHWi-0000Yo-Ls for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:36 -0400 Received: by pxi5 with SMTP id 5so3956626pxi.6 for ; Wed, 09 Sep 2009 00:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=fVSizTcE92ZkVjlWzuNrUFRvMB6iKue9grCtsfCjL50=; b=FDNBo5ZIO8ZRCySeZixHv+OuUmbpVB7Mo1wfxTQqQ4AdI6jIliPby3CZdFSCjAyWID YIR7isl2iHeJYtibYzm15y+qHE/Wd1mRjry8qDmBy8ldwAISqkBoPfMenXmdUtpjNCFv KRY6gGzJCdzgugk5ytSU/xQjm8925Brnd2Gcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=V/mZoeg9CQV6dLaohs5cltVBg9qFjUFytHtVbisdaQe9TyLZImi1/kHea63Vmg+nH0 utllJLwPsD7zEj2FQxP6qQgAMFq4pqABu9SglhvRoxTxbf8s8ajOJYSt3gJ27oAb0kMG 8ih54T3+jiP9ZlYHO389DYpzax12MNq1PAS3U= Received: by 10.114.18.4 with SMTP id 4mr19590144war.137.1252481014662; Wed, 09 Sep 2009 00:23:34 -0700 (PDT) Received: from ?192.168.123.51? (64-46-22-205.dyn.novuscom.net [64.46.22.205]) by mx.google.com with ESMTPS id 21sm1016654pzk.7.2009.09.09.00.23.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Sep 2009 00:23:34 -0700 (PDT) From: Erik Charlebois Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Date: Wed, 9 Sep 2009 00:23:33 -0700 Message-Id: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> To: emacs-pretest-bug@gnu.org Mime-Version: 1.0 (Apple Message framework v1075.2) X-Mailer: Apple Mail (2.1075.2) 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) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: 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. I'm working around it by setting the 'region background in a window-setup-hook (which is after frame-notice-user-settings in startup.el). It seems like this is a mistake and the 'region face background should not be set in ns-win.el. It's unintuitive that one specific face setting isn't honoured in your init.el. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Users/erikc/Documents/emacs/nextstep/Emacs.app/Contents/Resources/etc/ DEBUG for instructions. In GNU Emacs 23.1.50.3 (i386-apple-darwin10.0.0, NS apple- appkit-1038.00) of 2009-09-08 on ermac.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t show-paren-mode: t global-whitespace-mode: t savehist-mode: t global-auto-revert-mode: t yas/global-mode: t yas/minor-mode: t shell-dirtrack-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t q Recent messages: Loading ~/.viper...done Loading tramp...done Building list of manual directory expansions... Building completion list of all manual topics... Loading /Users/erikc/.emacs.d/anything-c-adaptive-history...done Setting up CEDET packages...done Loading /Users/erikc/.emacs.d/haskell-mode-2.4/haskell-site-file.el (source)...done Loading fu...done Ido mode enabled For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /Users/erikc/.emacs.d/cedet-1.0pre6/speedbar/speedbar hides /Users/ erikc/Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/ speedbar /Users/erikc/.emacs.d/cedet-1.0pre6/speedbar/sb-image hides /Users/ erikc/Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/sb- image /Users/erikc/.emacs.d/cedet-1.0pre6/common/ezimage hides /Users/erikc/ Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/ezimage /Users/erikc/.emacs.d/cedet-1.0pre6/speedbar/dframe hides /Users/erikc/ Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/dframe Erik Charlebois erikcharlebois@gmail.com From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Glenn Morris , 4381@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 10 Sep 2009 06:35:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.12525640593899 (code B ref 4381); Thu, 10 Sep 2009 06:35:05 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 10 Sep 2009 06:27:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.7 required=4.0 tests=AWL,HAS_BUG_NUMBER, VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8A6RbPd003896; Wed, 9 Sep 2009 23:27:38 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mld85-0007yw-2d; Thu, 10 Sep 2009 02:27:37 -0400 From: Glenn Morris To: Erik Charlebois Cc: 4381@debbugs.gnu.org References: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> X-Spook: genetic Syria ASO counter intelligence UFO supercomputer X-Ran: EW*&ct)RHyzMpta-O.Q3EY1;7a9`%83U>o;)_N9?~b0Bzz~o6.c2x4IcS`j X-Hue: yellow X-Attribution: GM Date: Thu, 10 Sep 2009 02:27:36 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Erik Charlebois , 4381@debbugs.gnu.org Resent-From: Erik Charlebois Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Sun, 13 Sep 2009 22:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125287900514592 (code B ref 4381); Sun, 13 Sep 2009 22:05:04 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 13 Sep 2009 21:56:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 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= Received: by 10.114.45.13 with SMTP id s13mr9964207was.167.1252878998180; Sun, 13 Sep 2009 14:56:38 -0700 (PDT) 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) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Erik Charlebois In-Reply-To: Date: Sun, 13 Sep 2009 14:56:36 -0700 Cc: 4381@debbugs.gnu.org Content-Transfer-Encoding: 7bit Message-Id: <63104FCA-1605-4369-B4D6-D6C4A5D24952@gmail.com> References: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> To: Glenn Morris X-Mailer: Apple Mail (2.1076) 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. > From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Glenn Morris , 4381@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Mon, 14 Sep 2009 01:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125289057519273 (code B ref 4381); Mon, 14 Sep 2009 01:15:04 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 14 Sep 2009 01:09:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.6 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E19Yg5019270 for <4381@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 18:09:35 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mn04S-0002E5-NN; Sun, 13 Sep 2009 21:09:32 -0400 From: Glenn Morris To: Erik Charlebois Cc: 4381@debbugs.gnu.org References: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> <63104FCA-1605-4369-B4D6-D6C4A5D24952@gmail.com> X-Spook: Rule Psix AFSPC number key cypherpunk explosion $400 X-Ran: 9K~W_;{1htzx|XcCQ=uA++~@L*p)_^HApKR=Icb1:V=x@BZbA3zPul9g:\{T0&Z7vnw8TH X-Hue: red X-Attribution: GM Date: Sun, 13 Sep 2009 21:09:32 -0400 In-Reply-To: <63104FCA-1605-4369-B4D6-D6C4A5D24952@gmail.com> (Erik Charlebois's message of "Sun, 13 Sep 2009 14:56:36 -0700") Message-ID: <9263bmtjqr.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Erik Charlebois wrote: > 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). Your problem sounds like this one: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2868 (which unfortunately split into many different bugs rather than being all in the same one) I think the underlying problem is that ns-win is doing a slightly odd thing by calling set-face-background, and it does not play well with customize. See also bug #3408. The solution may be to change ns-win to use a more customize-friendly method of changing the face, if it really needs to do that. From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Erik Charlebois , 4381@debbugs.gnu.org Resent-From: Erik Charlebois Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Mon, 14 Sep 2009 06:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125290844910731 (code B ref 4381); Mon, 14 Sep 2009 06:15:04 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 14 Sep 2009 06:07:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.2 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-pz0-f184.google.com (mail-pz0-f184.google.com [209.85.222.184]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E67SA1010724 for <4381@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 23:07:29 -0700 Received: by pzk14 with SMTP id 14so2371915pzk.1 for <4381@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 23:07:22 -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=B3HcP5amQwpMZSzqQlvySdIVHimMTsd8XEtQoFufmZM=; b=TA8l3yDcMJVtSP5RgjpQvMLGPCFZG+p12wJoMdRJaKUvB3tMk0PmqsHH1n9WepFqa/ nzfYHojiSGX1p5rYNnFCz1Fg1N9zRHCi8Y2mRJU5T1Ft/BphZkRgdu47d5Qb23bcPAdW XLoAMpwJySIojuA34SH3cLYq+qWT9UYC28AFw= 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=QkS1MPBH1DBYKc49KkkIUg4w/etiemhQCVAWQUrWVpbIvbRwi9u/MzzCWptP3Pq//O OlQpbdBz6HELBmDDcSz/jfCT4/q7F8NPGtV7+L22xdoMD1Cvb74uZpx6NKxW8w2yvCWq mYkx/3nI5GhvqMbXz1uov6Sejxe9fFR64xHaM= Received: by 10.115.65.5 with SMTP id s5mr10646486wak.41.1252908442817; Sun, 13 Sep 2009 23:07:22 -0700 (PDT) Received: from ?192.168.123.51? (64-46-22-205.dyn.novuscom.net [64.46.22.205]) by mx.google.com with ESMTPS id 21sm2918779pzk.7.2009.09.13.23.07.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Sep 2009 23:07:22 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Erik Charlebois In-Reply-To: <9263bmtjqr.fsf@fencepost.gnu.org> Date: Sun, 13 Sep 2009 23:07:19 -0700 Cc: 4381@debbugs.gnu.org Content-Transfer-Encoding: 7bit Message-Id: References: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> <63104FCA-1605-4369-B4D6-D6C4A5D24952@gmail.com> <9263bmtjqr.fsf@fencepost.gnu.org> To: Glenn Morris X-Mailer: Apple Mail (2.1076) I did a deep dive and figured out exactly what is going on. The (set-face-background 'region "ns_selection_color") that gets run in ns-win.el adds an entry to face-new-frame-defaults for 'region with "ns_selection_color" in the background slot. This gets persisted to the temacs-generated image. In startup.el after (command-line) (and therefore, after .emacs runs), there's a call to frame-notice-user-settings. Because the background- color has been changed, a call to face-set-after-frame-default is made. This is turn calls internal-merge-in-global-face. This function overrides local settings with the global ones in face-new-frame- defaults, which clobbers the face setting. The reason using set-face-attribute in .emacs works and custom-set- faces doesn't is because set-face-attribute (with nil frame) sets the value in face-new-frame-defaults. Those are the gory details. I'm not sure what the right fix is. Erik Charlebois erikcharlebois@gmail.com On 2009-09-13, at 6:09 PM, Glenn Morris wrote: > Erik Charlebois wrote: > >> 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). > > Your problem sounds like this one: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2868 > > (which unfortunately split into many different bugs rather than being > all in the same one) > > I think the underlying problem is that ns-win is doing a slightly odd > thing by calling set-face-background, and it does not play well with > customize. See also bug #3408. > > The solution may be to change ns-win to use a more customize-friendly > method of changing the face, if it really needs to do that. From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Adrian Robert , 4381@debbugs.gnu.org Resent-From: Adrian Robert Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Sat, 19 Sep 2009 00:05:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125331819630907 (code B ref 4381); Sat, 19 Sep 2009 00:05:12 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 18 Sep 2009 23:56:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.3 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-qy0-f189.google.com (mail-qy0-f189.google.com [209.85.221.189]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8INuYKd030896 for <4381@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 16:56:35 -0700 Received: by qyk27 with SMTP id 27so1233678qyk.13 for <4381@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 16:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:content-type :message-id:cc:content-transfer-encoding:from:subject:date:to :x-mailer; bh=h326dxR3KohMSUvFmxU9jgCZTPAYwAwSO4cdpEBsXOM=; b=dvUcJF+MqrsHbAq7LlF86qRZRPkg32nV0fxRReofFDXp4i6YyIEa0Wxdg7fSx3zuoP ke+ZOEvkcizvbj95DySk5Jwvwj//PMD0HPLP4kIZvGbfBKAPlPkmDevX36n1E/7g4tTy hVvnvi1fyilRX5+Xzibc+q/TaG9O/iUK0yaQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; b=ApC+uM1jHOIg35eWx0kq0Qm/j6Tj+KHXiH/AwHdTbF9VX9EUomHxf0ogvgxa0MV+rF d6U+DndtMFrtf/SGUeRxb+AYtXbdXcasr1scNvhA8x5B8QWID38/53HpxBrzpClGdBqQ 6YAlHt2654ypD/0lAY0pErDE4kohhmYYawn+0= Received: by 10.224.103.12 with SMTP id i12mr1906451qao.120.1253318189122; Fri, 18 Sep 2009 16:56:29 -0700 (PDT) Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 7sm1189063qwb.20.2009.09.18.16.56.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Sep 2009 16:56:28 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Erik Charlebois Content-Transfer-Encoding: 7bit From: Adrian Robert Date: Fri, 18 Sep 2009 19:57:52 -0400 To: 4381@debbugs.gnu.org X-Mailer: Apple Mail (2.753.1) http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4381 Thanks for looking into this. Does changing the setting in ns-win.el to the customize-face form work? (Not sure that's the way to go though. I suspect we'll need to put some conditional code in the place that sets up the face.) From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Erik Charlebois , 4381@debbugs.gnu.org Resent-From: Erik Charlebois Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Sat, 19 Sep 2009 04:25:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.12533339509068 (code B ref 4381); Sat, 19 Sep 2009 04:25:05 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 19 Sep 2009 04:19:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL,GMAIL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-px0-f171.google.com (mail-px0-f171.google.com [209.85.216.171]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8J4J9Q1009064 for <4381@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 21:19:10 -0700 Received: by pxi1 with SMTP id 1so1195674pxi.1 for <4381@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 21:19:04 -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=Kp0Lu6OKvi7XrrYJGV7e/+L45oSK+5nRTSQls6gppAs=; b=f8VvFmz9acSdVZBkhZVKJ6/o+nZiBDvPmRWRn433I4o9M9TcmBjFhEYe3V6x1Voaa9 JKrhtm5jOOc/AwKHSQllRJ/ssKNRnBEjTxC304vDrvnQ8PlW9tu0gfjjIjIOIwCAO2bl X9C11txu+Q/ouU5q5GnF6NFZlBsVg/rnCUans= 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=F4x7QUwjET55tpuzgwKbkMaplDJop3hqlbWY+uQ0CaUCWhq/i3AjOtp6H5Ute0Px6M ENQeYc2E2ZTL1K02kKMcBRT9kCtGmjnMnjfy+hhaem7pghQWbbWMGafYogWw+uk7bU/3 x3G8/2qLR7ZRVlFFvyu6HOs/pyzhxETQfnDrA= Received: by 10.115.64.32 with SMTP id r32mr2537761wak.130.1253333943917; Fri, 18 Sep 2009 21:19:03 -0700 (PDT) Received: from ?192.168.123.51? (64-46-22-205.dyn.novuscom.net [64.46.22.205]) by mx.google.com with ESMTPS id 20sm843826pzk.13.2009.09.18.21.19.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Sep 2009 21:19:03 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Erik Charlebois In-Reply-To: Date: Fri, 18 Sep 2009 21:19:02 -0700 Cc: 4381@debbugs.gnu.org Content-Transfer-Encoding: 7bit Message-Id: <1247DB83-08F4-4294-988D-494669656649@gmail.com> References: To: Adrian Robert X-Mailer: Apple Mail (2.1076) Yes, using (custom-set-faces '(region ((t (:background "ns_selection_color"))))) instead does work. But I'm quite hazy on the implications of that :). Erik Charlebois erikcharlebois@gmail.com On 2009-09-18, at 4:57 PM, Adrian Robert wrote: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4381 > > Thanks for looking into this. Does changing the setting in ns- > win.el to the customize-face form work? (Not sure that's the way to > go though. I suspect we'll need to put some conditional code in the > place that sets up the face.) > From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Stefan Monnier , 4381@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Sun, 20 Sep 2009 13:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.12534538859241 (code B ref 4381); Sun, 20 Sep 2009 13:45:03 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 20 Sep 2009 13:38:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8KDc3Qn009238 for <4381@emacsbugs.donarmstrong.com>; Sun, 20 Sep 2009 06:38:04 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4EAFLNtUpFxL35/2dsb2JhbACBUst1hBsFh34 X-IronPort-AV: E=Sophos;i="4.44,419,1249272000"; d="scan'208";a="46160957" Received: from 69-196-189-249.dsl.teksavvy.com (HELO pastel.home) ([69.196.189.249]) by ironport2-out.pppoe.ca with ESMTP; 20 Sep 2009 09:37:57 -0400 Received: by pastel.home (Postfix, from userid 20848) id 1E8398079; Sun, 20 Sep 2009 09:37:56 -0400 (EDT) From: Stefan Monnier To: Erik Charlebois Cc: 4381@debbugs.gnu.org, Adrian Robert Message-ID: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> Date: Sun, 20 Sep 2009 09:37:56 -0400 In-Reply-To: <1247DB83-08F4-4294-988D-494669656649@gmail.com> (Erik Charlebois's message of "Fri, 18 Sep 2009 21:19:02 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > (custom-set-faces '(region ((t (:background "ns_selection_color"))))) Why not change faces.el directly? Stefan From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Adrian Robert , 4381@debbugs.gnu.org Resent-From: Adrian Robert Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Tue, 22 Sep 2009 23:25:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125366145220230 (code B ref 4381); Tue, 22 Sep 2009 23:25:05 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 22 Sep 2009 23:17:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.3 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 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= Received: by 10.224.14.81 with SMTP id f17mr1333865qaa.124.1253661450889; Tue, 22 Sep 2009 16:17:30 -0700 (PDT) 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: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> Cc: Erik Charlebois , 4381@debbugs.gnu.org Content-Transfer-Encoding: 7bit From: Adrian Robert Date: Tue, 22 Sep 2009 19:19:00 -0400 To: Stefan Monnier X-Mailer: Apple Mail (2.753.1) 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")) From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Stefan Monnier , 4381@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Wed, 23 Sep 2009 22:50:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125374585632268 (code B ref 4381); Wed, 23 Sep 2009 22:50:06 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 23 Sep 2009 22:44:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8NMiE5p032257 for <4381@emacsbugs.donarmstrong.com>; Wed, 23 Sep 2009 15:44:15 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsFAMtBukpFpYEz/2dsb2JhbACBUdVkhBsFh34 X-IronPort-AV: E=Sophos;i="4.44,440,1249272000"; d="scan'208";a="46455170" Received: from 69-165-129-51.dsl.teksavvy.com (HELO pastel.home) ([69.165.129.51]) by ironport2-out.pppoe.ca with ESMTP; 23 Sep 2009 18:44:08 -0400 Received: by pastel.home (Postfix, from userid 20848) id BA9AC807A; Wed, 23 Sep 2009 18:44:08 -0400 (EDT) From: Stefan Monnier To: Adrian Robert Cc: Erik Charlebois , 4381@debbugs.gnu.org Message-ID: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> Date: Wed, 23 Sep 2009 18:44:08 -0400 In-Reply-To: <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> (Adrian Robert's message of "Tue, 22 Sep 2009 19:19:00 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> (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. Your call, but if you want to change the default value of the `region' face, it should be done directly in faces.el. > Colors there are defined for dark and light backgrounds, which > is not supported by the NS implementation. Why isn't it supported? > 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. IIUC it is supported under w32 (also be defining special color names), so you may want to check what they do there. I do not know if they set the faces to use those by default. BTW, it might be a good idea to try and use the same special color names whenever possible. There's no such support under Gtk currently, AFAIK, but I don't think it's because we don't want it, but because nobody wrote the code for it yet. Stefan From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Adrian Robert , 4381@debbugs.gnu.org Resent-From: Adrian Robert Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Thu, 24 Sep 2009 03:25:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125376230120021 (code B ref 4381); Thu, 24 Sep 2009 03:25:07 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 24 Sep 2009 03:18:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.2 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-qy0-f197.google.com (mail-qy0-f197.google.com [209.85.221.197]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8O3IKpo020018 for <4381@emacsbugs.donarmstrong.com>; Wed, 23 Sep 2009 20:18:21 -0700 Received: by qyk35 with SMTP id 35so1173362qyk.19 for <4381@emacsbugs.donarmstrong.com>; Wed, 23 Sep 2009 20:18:14 -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=NdthOQnT8+Hk7jOv34E/WuwxLtvywUroPsF13pfphGg=; b=StwxLQerP1qImIGGbCb7ScH9xsfQfIlai+GcrYO5+HKwvXg1p+jGUhjCVx6ER45b2s hMraVr/lnxSGNAgLmzzRCj/jGO/2SrxO++wL6NbwNQkOY8kxYGSTRAifwbeeXUO5ZVAG mYygCa/FPQh4UxQqo6C7GQa8mFTeWHoxctzik= 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=UVCa6XqNfTN7jF4G49ZTraFnSg8cO9xA6WwAHpIshUasxSxKQh5TuzYPgHlIxjPOuZ NlYQHooZiCIiXd8iUpx/U/16dIR/OtcQf3zQaNpbSyWcVguA1o6Yjs8i+Q/R3Jnt4n4L n1IQOhl61R1tfsT5sjTfFYpzNpntz3i+YAsYg= Received: by 10.224.57.72 with SMTP id b8mr2695964qah.222.1253762294826; Wed, 23 Sep 2009 20:18:14 -0700 (PDT) Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 22sm281013qyk.6.2009.09.23.20.18.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Sep 2009 20:18:13 -0700 (PDT) In-Reply-To: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <148ADF99-61FF-430A-BCC3-471FDAE93BB8@gmail.com> Cc: Erik Charlebois , 4381@debbugs.gnu.org Content-Transfer-Encoding: 7bit From: Adrian Robert Date: Wed, 23 Sep 2009 23:19:37 -0400 To: Stefan Monnier X-Mailer: Apple Mail (2.753.1) On Sep 23, 2009, at 6:44 PM, 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. > > Your call, but if you want to change the default value of the `region' > face, it should be done directly in faces.el. Hmm, now that I see the 'type' parameter for defface, a patch is attached. >> Colors there are defined for dark and light backgrounds, which >> is not supported by the NS implementation. > > Why isn't it supported? The only system-defined selection color on NS platforms is for the unconfigurable standard background color of white. >> 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. > > IIUC it is supported under w32 (also be defining special color names), > so you may want to check what they do there. I do not know if they > set > the faces to use those by default. > BTW, it might be a good idea to try and use the same special color > names > whenever possible. > There's no such support under Gtk currently, AFAIK, but I don't think > it's because we don't want it, but because nobody wrote the code > for it yet. It looks like w32 adds system colors to a color "map" in w32fns.c:add_system_logical_colors_to_map (). So they are available to the user when customizing. Making some sort of alias like "system- selected-text-background" that window system code could map appropriately sounds like a good way to go. --- faces.el.~1.446.~ 2009-09-05 15:33:48.000000000 -0400 +++ faces.el 2009-09-23 23:06:19.000000000 -0400 @@ -2281,6 +2281,8 @@ terminal type to a different value." (defface region '((((class color) (min-colors 88) (background dark)) :background "blue3") + (((class color) (min-colors 88) (background light) (type ns)) + :background "ns_selection_color") (((class color) (min-colors 88) (background light)) :background "lightgoldenrod2") (((class color) (min-colors 16) (background dark)) --- ns-win.el.~1.53.~ 2009-09-22 22:32:24.000000000 -0400 +++ ns-win.el 2009-09-23 23:03:31.000000000 -0400 @@ -1075,8 +1067,6 @@ On Nextstep, put TEXT in the pasteboard; (interactive) (insert (ns-get-cut-buffer-internal 'SECONDARY))) -(set-face-background 'region "ns_selection_color") - ;;;; Scrollbar handling. From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Stefan Monnier , 4381@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Thu, 24 Sep 2009 15:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.12538052902588 (code B ref 4381); Thu, 24 Sep 2009 15:20:04 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 24 Sep 2009 15:14:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OFEmam002585 for <4381@emacsbugs.donarmstrong.com>; Thu, 24 Sep 2009 08:14:50 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEANIpu0pFpZBo/2dsb2JhbACBUtV3hBsFgViGJg X-IronPort-AV: E=Sophos;i="4.44,445,1249272000"; d="scan'208";a="46500797" Received: from 69-165-144-104.dsl.teksavvy.com (HELO ceviche.home) ([69.165.144.104]) by ironport2-out.pppoe.ca with ESMTP; 24 Sep 2009 11:14:43 -0400 Received: by ceviche.home (Postfix, from userid 20848) id EC23EB407F; Thu, 24 Sep 2009 11:14:42 -0400 (EDT) From: Stefan Monnier To: Adrian Robert Cc: Erik Charlebois , 4381@debbugs.gnu.org Message-ID: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> <148ADF99-61FF-430A-BCC3-471FDAE93BB8@gmail.com> Date: Thu, 24 Sep 2009 11:14:42 -0400 In-Reply-To: <148ADF99-61FF-430A-BCC3-471FDAE93BB8@gmail.com> (Adrian Robert's message of "Wed, 23 Sep 2009 23:19:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> Colors there are defined for dark and light backgrounds, which >>> is not supported by the NS implementation. >> Why isn't it supported? > The only system-defined selection color on NS platforms is for the > unconfigurable standard background color of white. I'm not sure we're talking about the same thing. The lisp/faces.el notion of dark/light background doesn't have anything to do with the desktop's background, but with the Emacs buffers's default background (i.e. whether the background color of the `default' face is rather light or rather dark). > --- faces.el.~1.446.~ 2009-09-05 15:33:48.000000000 -0400 > +++ faces.el 2009-09-23 23:06:19.000000000 -0400 > @@ -2281,6 +2281,8 @@ terminal type to a different value." > (defface region > '((((class color) (min-colors 88) (background dark)) > :background "blue3") > + (((class color) (min-colors 88) (background light) (type ns)) > + :background "ns_selection_color") > (((class color) (min-colors 88) (background light)) > :background "lightgoldenrod2") > (((class color) (min-colors 16) (background dark)) Could you add a comment explaining why you put (background light) in the specs? I guess it's because the ns_selection_color is (almost) always defined with the assumption that it will be used on text displayed on a light background., right? Stefan From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Adrian Robert , 4381@debbugs.gnu.org Resent-From: Adrian Robert Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Thu, 24 Sep 2009 16:20:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125380885211365 (code B ref 4381); Thu, 24 Sep 2009 16:20:08 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 24 Sep 2009 16:14:12 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-qy0-f197.google.com (mail-qy0-f197.google.com [209.85.221.197]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OGEAkh011360 for <4381@emacsbugs.donarmstrong.com>; Thu, 24 Sep 2009 09:14:11 -0700 Received: by qyk35 with SMTP id 35so1527865qyk.19 for <4381@emacsbugs.donarmstrong.com>; Thu, 24 Sep 2009 09:14:05 -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=oUDyxRZEtkAscTjJHQOcl/4ls/NeeFYEMCyXVTrRTYY=; b=snPbzhBUOfqW23cNwKyntPpWExlxZGWoF+O9xYEB3jSfKUEzhONx+ZBDb7TxshKsRl Q2jQthHqCqXduKPZqe4DsSfduPCzJS5T0Ns14FUSJIIPG2Mh1Us5623qGK4ODGw9iFfX 0bFqVwtpO7PMj0uP/BBmAn//BVQ8lajiaGthU= 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=Ba1O9LdauWgD3JrGOZq5wROVXZ5lhWvReZk1dmb2Yel+uRv55ojZr3GcHmAprbvXnW UxNYwc/oWwZR6wvoz0btDg80fkMdNht6bosZRL1xPau6Lz+lw+cIQJfcvlsRlqnezAzr 1i86JwAu0LdMw0fWBlYbbRoo+qfwzObOq2s/I= Received: by 10.224.23.10 with SMTP id p10mr3402720qab.72.1253808844008; Thu, 24 Sep 2009 09:14:04 -0700 (PDT) Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 22sm643334qyk.14.2009.09.24.09.13.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Sep 2009 09:14:01 -0700 (PDT) In-Reply-To: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> <148ADF99-61FF-430A-BCC3-471FDAE93BB8@gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Erik Charlebois , 4381@debbugs.gnu.org Content-Transfer-Encoding: 7bit From: Adrian Robert Date: Thu, 24 Sep 2009 12:15:31 -0400 To: Stefan Monnier X-Mailer: Apple Mail (2.753.1) On Sep 24, 2009, at 11:14 AM, Stefan Monnier wrote: >>>> Colors there are defined for dark and light backgrounds, which >>>> is not supported by the NS implementation. >>> Why isn't it supported? >> The only system-defined selection color on NS platforms is for the >> unconfigurable standard background color of white. > > I'm not sure we're talking about the same thing. The lisp/faces.el > notion of dark/light background doesn't have anything to do with the > desktop's background, but with the Emacs buffers's default background > (i.e. whether the background color of the `default' face is rather > light or rather dark). No, we are. The background of content panes in apps under NS (text editors, email readers, PDF viewers, etc.) is unconfigurably fixed to be white. So the system-defined selection color will work well with light backgrounds, but not dark. The patch I attached handles this in a reasonable way though. >> --- faces.el.~1.446.~ 2009-09-05 15:33:48.000000000 -0400 >> +++ faces.el 2009-09-23 23:06:19.000000000 -0400 >> @@ -2281,6 +2281,8 @@ terminal type to a different value." >> (defface region >> '((((class color) (min-colors 88) (background dark)) >> :background "blue3") >> + (((class color) (min-colors 88) (background light) (type ns)) >> + :background "ns_selection_color") >> (((class color) (min-colors 88) (background light)) >> :background "lightgoldenrod2") >> (((class color) (min-colors 16) (background dark)) > > Could you add a comment explaining why you put (background light) in > the specs? I guess it's because the ns_selection_color is (almost) > always defined with the assumption that it will be used on text > displayed on a light background., right? Something like: ;; Region face: under NS, use the system-defined selection color ;; (optimized for the system-fixed white background of other apps), ;; if background is light. From unknown Mon Sep 08 23:34:34 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Reply-To: Stefan Monnier , 4381@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org 2Resent-Date: Thu, 24 Sep 2009 17:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4381 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 4381-submit@emacsbugs.donarmstrong.com id=B4381.125381370726687 (code B ref 4381); Thu, 24 Sep 2009 17:45:04 +0000 Received: (at 4381) by emacsbugs.donarmstrong.com; 24 Sep 2009 17:35:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.1 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OHZ49F026608 for <4381@emacsbugs.donarmstrong.com>; Thu, 24 Sep 2009 10:35:06 -0700 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n8OHZ3Ee003793; Thu, 24 Sep 2009 13:35:03 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id A608B3A122; Thu, 24 Sep 2009 13:35:03 -0400 (EDT) From: Stefan Monnier To: Adrian Robert Cc: Erik Charlebois , 4381@debbugs.gnu.org Message-ID: References: <1247DB83-08F4-4294-988D-494669656649@gmail.com> <82F117D9-CE52-4B25-98CA-0ABAAF0EC35F@gmail.com> <148ADF99-61FF-430A-BCC3-471FDAE93BB8@gmail.com> Date: Thu, 24 Sep 2009 13:35:03 -0400 In-Reply-To: (Adrian Robert's message of "Thu, 24 Sep 2009 12:15:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3370=0 >>> --- faces.el.~1.446.~ 2009-09-05 15:33:48.000000000 -0400 >>> +++ faces.el 2009-09-23 23:06:19.000000000 -0400 >>> @@ -2281,6 +2281,8 @@ terminal type to a different value." >>> (defface region >>> '((((class color) (min-colors 88) (background dark)) >>> :background "blue3") >>> + (((class color) (min-colors 88) (background light) (type ns)) >>> + :background "ns_selection_color") >>> (((class color) (min-colors 88) (background light)) >>> :background "lightgoldenrod2") >>> (((class color) (min-colors 16) (background dark)) >> >> Could you add a comment explaining why you put (background light) in >> the specs? I guess it's because the ns_selection_color is (almost) >> always defined with the assumption that it will be used on text >> displayed on a light background., right? > Something like: > ;; Region face: under NS, use the system-defined selection color > ;; (optimized for the system-fixed white background of other apps), > ;; if background is light. Looks good, please install it, Stefan From unknown Mon Sep 08 23:34:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Erik Charlebois Subject: bug#4381 closed by Adrian Robert (Re: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs) Message-ID: References: <72AE156F-90CA-4D0A-B93C-F3E3B3253B57@gmail.com> <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> X-Emacs-PR-Message: they-closed 4381 X-Emacs-PR-Package: emacs,ns Reply-To: 4381@debbugs.gnu.org Date: Sun, 27 Sep 2009 16:20:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1254068405-29276-1" This is a multi-part message in MIME format... ------------=_1254068405-29276-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs,ns package: #4381: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el a= fter .emacs It has been closed by Adrian Robert . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Adrian Robert by replying to this email. --=20 4381: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4381 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1254068405-29276-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4381-done) by emacsbugs.donarmstrong.com; 27 Sep 2009 16:12:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.2 required=4.0 tests=AWL,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8RGCt08028478 for <4381-done@emacsbugs.donarmstrong.com>; Sun, 27 Sep 2009 09:12:56 -0700 Received: by qw-out-2122.google.com with SMTP id 9so393078qwb.13 for <4381-done@emacsbugs.donarmstrong.com>; Sun, 27 Sep 2009 09:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version :content-transfer-encoding:message-id:content-type:to:from:subject :date:x-mailer; bh=k6njEmajJTnchoC07hKhLe1QKiOF0JPpqkY45nRelQg=; b=RLgVS74Fk3WEADS12jrqKjPpzn+KAyNVJGx3K33H93ECsNt9H2HD6Dhuh6AbucT3b2 ycnuMeRdus+JzcIEbLIDih1GMc0EYoCIXegIplYN09fwhgJdJfzyGGPyrybNMbTGKsE4 xe4C8Cq63SfC5jAm4/jhIB7IODdwnG1Duhdz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-transfer-encoding:message-id:content-type:to :from:subject:date:x-mailer; b=nPoWN4MooV2K/N0HbpPoJEKPIh88RONcTghHi49ZB2LGi7fb83iLE2t6c1Tpn+SuWf UWUxz0RNp424U5j1m2plLfFUzNFcCkmkq26dAWUFVg2c+U4t2LgqOznyDgrOEaR0m+Xw GtLEEbqafhYB/er0TjRqVft0Ei+8wYsDfqOf0= Received: by 10.224.123.231 with SMTP id q39mr1953542qar.80.1254067975171; Sun, 27 Sep 2009 09:12:55 -0700 (PDT) Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id 21sm1207495qyk.4.2009.09.27.09.12.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Sep 2009 09:12:54 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <72AE156F-90CA-4D0A-B93C-F3E3B3253B57@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: 4381-done@debbugs.gnu.org From: Adrian Robert Subject: Re: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Date: Sun, 27 Sep 2009 12:14:23 -0400 X-Mailer: Apple Mail (2.753.1) Closing, fixed with commented version of last patch posted. ------------=_1254068405-29276-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2009 07:23:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,GMAIL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n897NnWO028082 for ; Wed, 9 Sep 2009 00:23:50 -0700 Received: from mx10.gnu.org ([199.232.76.166]:38475) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MlHWv-0001ER-60 for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MlHWt-00064r-MC for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:48 -0400 Received: from mx20.gnu.org ([199.232.41.8]:8363) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MlHWt-00061i-7B for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:47 -0400 Received: from mail-px0-f175.google.com ([209.85.216.175]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlHWi-0000Yo-Ls for emacs-pretest-bug@gnu.org; Wed, 09 Sep 2009 03:23:36 -0400 Received: by pxi5 with SMTP id 5so3956626pxi.6 for ; Wed, 09 Sep 2009 00:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=fVSizTcE92ZkVjlWzuNrUFRvMB6iKue9grCtsfCjL50=; b=FDNBo5ZIO8ZRCySeZixHv+OuUmbpVB7Mo1wfxTQqQ4AdI6jIliPby3CZdFSCjAyWID YIR7isl2iHeJYtibYzm15y+qHE/Wd1mRjry8qDmBy8ldwAISqkBoPfMenXmdUtpjNCFv KRY6gGzJCdzgugk5ytSU/xQjm8925Brnd2Gcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=V/mZoeg9CQV6dLaohs5cltVBg9qFjUFytHtVbisdaQe9TyLZImi1/kHea63Vmg+nH0 utllJLwPsD7zEj2FQxP6qQgAMFq4pqABu9SglhvRoxTxbf8s8ajOJYSt3gJ27oAb0kMG 8ih54T3+jiP9ZlYHO389DYpzax12MNq1PAS3U= Received: by 10.114.18.4 with SMTP id 4mr19590144war.137.1252481014662; Wed, 09 Sep 2009 00:23:34 -0700 (PDT) Received: from ?192.168.123.51? (64-46-22-205.dyn.novuscom.net [64.46.22.205]) by mx.google.com with ESMTPS id 21sm1016654pzk.7.2009.09.09.00.23.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Sep 2009 00:23:34 -0700 (PDT) From: Erik Charlebois Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: 23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs Date: Wed, 9 Sep 2009 00:23:33 -0700 Message-Id: <1AAD906B-FB98-45B1-897A-C42427404493@gmail.com> To: emacs-pretest-bug@gnu.org Mime-Version: 1.0 (Apple Message framework v1075.2) X-Mailer: Apple Mail (2.1075.2) 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) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: 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. I'm working around it by setting the 'region background in a window-setup-hook (which is after frame-notice-user-settings in startup.el). It seems like this is a mistake and the 'region face background should not be set in ns-win.el. It's unintuitive that one specific face setting isn't honoured in your init.el. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Users/erikc/Documents/emacs/nextstep/Emacs.app/Contents/Resources/etc/ DEBUG for instructions. In GNU Emacs 23.1.50.3 (i386-apple-darwin10.0.0, NS apple- appkit-1038.00) of 2009-09-08 on ermac.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t show-paren-mode: t global-whitespace-mode: t savehist-mode: t global-auto-revert-mode: t yas/global-mode: t yas/minor-mode: t shell-dirtrack-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t q Recent messages: Loading ~/.viper...done Loading tramp...done Building list of manual directory expansions... Building completion list of all manual topics... Loading /Users/erikc/.emacs.d/anything-c-adaptive-history...done Setting up CEDET packages...done Loading /Users/erikc/.emacs.d/haskell-mode-2.4/haskell-site-file.el (source)...done Loading fu...done Ido mode enabled For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /Users/erikc/.emacs.d/cedet-1.0pre6/speedbar/speedbar hides /Users/ erikc/Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/ speedbar /Users/erikc/.emacs.d/cedet-1.0pre6/speedbar/sb-image hides /Users/ erikc/Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/sb- image /Users/erikc/.emacs.d/cedet-1.0pre6/common/ezimage hides /Users/erikc/ Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/ezimage /Users/erikc/.emacs.d/cedet-1.0pre6/speedbar/dframe hides /Users/erikc/ Documents/emacs/nextstep/Emacs.app/Contents/Resources/lisp/dframe Erik Charlebois erikcharlebois@gmail.com ------------=_1254068405-29276-1--