From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: why does occur depropertize matching lines? Date: Wed, 8 Dec 2004 11:06:30 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102532855 19459 80.91.229.6 (8 Dec 2004 19:07:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2004 19:07:35 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 08 20:07:22 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cc79m-0007VR-00 for ; Wed, 08 Dec 2004 20:07:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc7Jd-0005ej-8q for ged-emacs-devel@m.gmane.org; Wed, 08 Dec 2004 14:17:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cc7JQ-0005eD-Ue for emacs-devel@gnu.org; Wed, 08 Dec 2004 14:17:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cc7JO-0005cW-1D for emacs-devel@gnu.org; Wed, 08 Dec 2004 14:17:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc7JN-0005bU-Pz for emacs-devel@gnu.org; Wed, 08 Dec 2004 14:17:17 -0500 Original-Received: from [141.146.126.229] (helo=agminet02.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Cc792-0004Ys-Fs; Wed, 08 Dec 2004 14:06:36 -0500 Original-Received: from agminet02.oracle.com (localhost [127.0.0.1]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB8J6XMT006074; Wed, 8 Dec 2004 11:06:33 -0800 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB8J6WFL006050; Wed, 8 Dec 2004 11:06:32 -0800 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iB8J6WV7008537; Wed, 8 Dec 2004 12:06:32 -0700 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-84-174.vpn.oracle.com [141.144.84.174]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id iB8J6V7M008527 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 8 Dec 2004 12:06:31 -0700 Original-To: , "Juri Linkov" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal 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: main.gmane.org gmane.emacs.devel:30876 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30876 Most faces don't change background color. Only very special faces (that are very rarely used in buffers on which occur is usually called) have background different from default. Yes, most such faces are used for temporary highlighting. I don't think these assumptions should be made. Users can define faces (for font-lock or anything else) any way they want, including changing the background. > What we really want is to copy the face info from the source > but "dim" it a bit so it doesn't overshadow occur's own > highlighting. There is one problem with dimmed faces: they might be not readable, especially for visually impaired users. On some terminals, such dimming is not even possible, due to the limited number of supported colors. I wouldn't want dimming, anyway. Any highlighting that `occur' does should just be done without regard to the highlighting already there. If it turns out that `occur's highlighting uses face `foobar', and that is confusing in my context because I use `foobar' for font-locking, I can change the face used for `occur' highlighting (assuming it's not hard-coded!).