From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: About the :distant-foreground face attribute Date: Thu, 9 Jan 2014 14:25:42 -0800 (PST) Message-ID: References: <87bnzo9cja.fsf@gnu.org> <59B7E7FC-48D0-4737-B1BB-FFAC5BA9E07A@swipnet.se> <874n5f3162.fsf@gnu.org> <83fvozf86g.fsf@gnu.org> <87r48javwe.fsf@gnu.org> <83bnzmfjxe.fsf@gnu.org> <87bnzlyvwb.fsf@gnu.org> <83zjn5cch3.fsf@gnu.org> <87fvoxxe73.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389306364 5423 80.91.229.3 (9 Jan 2014 22:26:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 22:26:04 +0000 (UTC) To: Darren Hoo , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 09 23:26:11 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W1O3B-0000bv-2v for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 23:26:05 +0100 Original-Received: from localhost ([::1]:54467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1O3A-000354-M5 for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 17:26:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1O2z-0002ti-GI for emacs-devel@gnu.org; Thu, 09 Jan 2014 17:26:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1O2s-0006Ij-Mq for emacs-devel@gnu.org; Thu, 09 Jan 2014 17:25:53 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:16418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1O2s-0006If-AF for emacs-devel@gnu.org; Thu, 09 Jan 2014 17:25:46 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s09MPhfF000655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Jan 2014 22:25:44 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s09MPhbC008468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Jan 2014 22:25:43 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s09MPhLu008453; Thu, 9 Jan 2014 22:25:43 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167988 Archived-At: > > From my experience, editors usually simply drop font-lock when you > > mark text (at least Eclipse does that, and in gvim it seems to be > > configurable), and I think that is a good default. When you mark a > > region, you want to apply some kind of operation on it, after > > which the region will be gone and font lock is restored. >=20 > That's quite contrary to my experience. Even for old emacs like > emacs22 font-lock is kept on marked text with transient-mark-mode > enabled. As to other tools like Eclipse, Netbeans,Xcode selected > text does not lose syntax highlight either. Yes and no. You might think that, just because (a) by default, face `region' does not specify a foreground color and (b) most font locking (maybe all default font-locking) does not affect the background. > Especially for Eclipse I remembered that when I used it about a > decade ago copying selected code from Eclipse to other WYSIWYG > applications like MS PowerPoint the syntax highlight is also copied > ie, rich formatted. But this is the point: does the selection highlighting take precedence over the underlying text highlighting (syntax highlighting or other)? My guess is that in *all* of the cases you cite the answer is yes. Selection highlighting _should_ take precedence, so you can tell clearly which text has been selected. When you are selecting text, that is generally more important than other highlighting considerations. > I must say here that my experience with color theme is way much > better and much less flaws than before it's integerated thanks to > the work of all the developers especially cyd. I'm not sure what you mean by that. Color theme was not integrated into Emacs. It is still a separate library (and it still works with Emacs 24.4). What CYD did was to enhance Emacs custom themes to do some of what color themes do (in a different way), and to do some things that color themes do not do. `color-theme.el' is here: http://www.nongnu.org/color-theme . See also http://www.emacswiki.org/emacs/ColorTheme. > I do. I find myself get an uneasy feeling when font-lock is lost on > marked text. It was lost in the context you describe (IIUC), because the platform provided a bad default color for the `region' background. This was not the right "fix" for that problem, IMO (IIUC).