Pick up default selection color on OSX when user defaults are not set.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 28 Sep 2013 10:01:50 +0000 (12:01 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 28 Sep 2013 10:01:50 +0000 (12:01 +0200)
commit1610938f74bd8cee71c0190deb470b5bd102d51f
tree7114f6a13439b06d3b4affb2a77abaf606653727
parent0d2647e645d9965e0707d25e39e4152abfda99bf
Pick up default selection color on OSX when user defaults are not set.

* lisp/faces.el (region): Change ns_selection_color to
ns_selection_fg_color, add ns_selection_bg_color.

* src/nsterm.h (NS_SELECTION_BG_COLOR_DEFAULT): Renamed from
NS_SELECTION_COLOR_DEFAULT.
(NS_SELECTION_FG_COLOR_DEFAULT): New.

* src/nsterm.m (ns_selection_color): Remove.
(ns_get_color): Check for ns_selection_(fg|bg)_color using
NSColor selectedText(Background)Color.  Only for COCOA.
(ns_term_init): Remove assignment of ns_selection_color, logic
moved to ns_get_color.
lisp/ChangeLog
lisp/faces.el
src/ChangeLog
src/nsterm.h
src/nsterm.m