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: compilation-mode `mouse-face' property is hardcoded to `highlight' face Date: Fri, 16 Dec 2005 11:20:40 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134769331 12319 80.91.229.2 (16 Dec 2005 21:42:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 21:42:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 16 22:42:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnNJV-000404-Gu for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2005 22:40:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnNKD-0007ng-Fp for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2005 16:41:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EnL9B-0005mk-NZ for emacs-devel@gnu.org; Fri, 16 Dec 2005 14:21:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EnL99-0005ki-91 for emacs-devel@gnu.org; Fri, 16 Dec 2005 14:21:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnL99-0005kZ-4p for emacs-devel@gnu.org; Fri, 16 Dec 2005 14:21:39 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EnLBb-0004vQ-SS for emacs-devel@gnu.org; Fri, 16 Dec 2005 14:24:12 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBGJdSbf026841 for ; Fri, 16 Dec 2005 13:39:28 -0600 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBGJKhM0008639 for ; Fri, 16 Dec 2005 12:20:43 -0700 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw5-141-144-108-2.vpn.oracle.com [141.144.108.2]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jBGJKguh008631 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 16 Dec 2005 12:20:43 -0700 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:47893 Archived-At: In compilation-mode buffers (e.g. grep-mode), the `mouse-face' property is hard-coded to use the `highlight' face. This hard-coding makes it hard for a user to use a different `mouse-face' in these buffers. Could we instead use a new face as the `mouse-face' property value in these buffers, so that users can easily customize the face to be used for mouseover highlighting there? Currently, one can only customize the `highlight' face, which affects all buffers. This change should only require: 1) adding a new face (defface), say `compilation-mouseover' 2) replacing `highlight' by `compilation-mouseover' in `compile.el' The `highlight' face could still be used to define the initial value of the new face. (Why bother to have a `mouse-face' text property that can have different values, if it is going to be hardcoded here and there?)