bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15668: 24.3.50; No font lock on active region


From: Jan Djärv
Subject: bug#15668: 24.3.50; No font lock on active region
Date: Mon, 21 Oct 2013 20:47:25 +0200

Hello.

21 okt 2013 kl. 18:30 skrev Eli Zaretskii <eliz@gnu.org>:

>> Date: Mon, 21 Oct 2013 13:56:24 +0800
>> From: Darren Hoo <darren.hoo@gmail.com>
>> 
>> Open any elisp file and mark a function, and the active region is
>> not font-lockfied.
>> 
>> This only occurs in GUI mode, it's ok with text-mode.
> 
> Can't reproduce this with today's trunk.  Unless the recipe is not as
> simple as it sounds, this could be NS specific.

Both Gtk+ and NS does this.  The reason is that we use the system defined 
selection colors, and the background may be ill-matched to Emacs foreground 
colors.
For example, many Gnome settings use an almost black color for selection 
background, so Emacs black for text color is almost unreadable.  These settings 
use white(ish) for text color which is much better.  But by setting foreground 
selection color, you loose font-lock.  OSX uses a light blue for background, 
which is very near to blue used by font-lock-constant-face and also near 
font-lock-function-name-face.

It would be nice if one could define a face with a foreground color to be used 
when foreground and background otherwise are to similar.

        Jan D.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]