GNU bug report logs -
#4381
23.1.50; Cocoa Emacs: face background for 'region set in ns-win.el after .emacs
Previous Next
Full log
Message #15 received at 4381 <at> emacsbugs.donarmstrong.com (full text, mbox):
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 <at> 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.
>
This bug report was last modified 15 years and 321 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.