From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Transient Mark Mode on by default Date: Mon, 24 Mar 2008 20:29:33 -0400 Message-ID: <87prtjve6q.fsf@stupidchicken.com> References: <87myopnj0l.fsf@stupidchicken.com> <20080324115510.GA1563@muc.de> <87zlsouef7.fsf@stupidchicken.com> <20080324214717.GC1310@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206405175 26301 80.91.229.12 (25 Mar 2008 00:32:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 00:32:55 +0000 (UTC) Cc: Sascha Wilde , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 25 01:33:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jdx6O-0005fi-5X for ged-emacs-devel@m.gmane.org; Tue, 25 Mar 2008 01:33:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jdx5m-0004Z6-7o for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2008 20:32:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jdx5i-0004Yo-PO for emacs-devel@gnu.org; Mon, 24 Mar 2008 20:32:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jdx5g-0004Yc-Sl for emacs-devel@gnu.org; Mon, 24 Mar 2008 20:32:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jdx5g-0004YZ-N5 for emacs-devel@gnu.org; Mon, 24 Mar 2008 20:32:36 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jdx5g-0003r4-94 for emacs-devel@gnu.org; Mon, 24 Mar 2008 20:32:36 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 8EB884E4BE; Mon, 24 Mar 2008 20:29:33 -0400 (EDT) In-Reply-To: <20080324214717.GC1310@muc.de> (Alan Mackenzie's message of "Mon\, 24 Mar 2008 21\:47\:17 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93361 Archived-At: Alan Mackenzie writes: > The other big irritation is that region-face almost, but not quite, > completely obliterates the font-locking in the region - all that remains > visible is whether the font-lock face was bold or not, the foreground > being forced to white, the background to deep blue. I don't see there is > much that can be done about this on a 16-colour tty. But on a 2^24 > colour GUI system, it would be nice to have a "mute" attribute in a face, > something that would reduce the saturation of the colour it's applied to. > So that red would become a bit pink, pure blue would move towards sky > blue, white would become light grey, black would become dark grey. I > don't think such a face attribute exists at the moment. This is a good idea, but difficult to implement. The face code is already pretty darn complicated. You're the only one who's complained about the region obliterating font-lock, so I don't know how widespread this feeling is. Maybe others who are against tmm can chime in about whether they feel strongly about this? If this is a "big" objection, here's an idea: make the region face specify only the background. Try this (colors chosen as example only): (set-face-attribute 'region nil :foreground 'unspecified :background "#333366") ;; for dark backgrounds (set-face-attribute 'region nil :foreground 'unspecified :background "#DDDDFF") ;; for bright backgrounds