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: can we please define a face for compile.el mouseover? Date: Tue, 15 Feb 2011 11:26:45 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297798030 3722 80.91.229.12 (15 Feb 2011 19:27:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 19:27:10 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 15 20:27:06 2011 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.69) (envelope-from ) id 1PpQYD-0001CO-2C for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 20:27:05 +0100 Original-Received: from localhost ([127.0.0.1]:59928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpQYC-0007lv-Fy for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 14:27:04 -0500 Original-Received: from [140.186.70.92] (port=42231 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpQY6-0007lp-Q9 for emacs-devel@gnu.org; Tue, 15 Feb 2011 14:26:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpQY5-0004XD-JQ for emacs-devel@gnu.org; Tue, 15 Feb 2011 14:26:58 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:30674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpQY5-0004X5-Cf for emacs-devel@gnu.org; Tue, 15 Feb 2011 14:26:57 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p1FJQtRd031297 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Feb 2011 19:26:56 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p1FDW5Af032167 for ; Tue, 15 Feb 2011 19:26:53 GMT Original-Received: from abhmt003.oracle.com by acsmt353.oracle.com with ESMTP id 1008313971297798006; Tue, 15 Feb 2011 11:26:46 -0800 Original-Received: from dradamslap1 (/10.159.58.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 Feb 2011 11:26:46 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcvNRkhqaHsYtWnFSN2VqTcYUI0Xqg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4D5AD37E.022A:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 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:136065 Archived-At: Can we please define a face to be used for the `mouse-face' property in the `compile.el' code? It doesn't make sense to hard-code `highlight' in this code. For a user to be able to use a different face for mouseover s?he needs to duplicate EACH of the following function definitions and then simply replace `highlight' in the code by a face specific to compilation and grep: compilation-directory-properties compilation-internal-error-properties compilation-(-)compat-error-properties (`--' for Emacs 24; else `-') And if the user wants the fix to work also for other Emacs releases, then s?he needs to duplicate and tweak the definitions twice (the Emacs 24 code is different, including the above function renaming). That's silly. Users should be able to just customize the face used for mouseover highlighting. Example face definition: (defface compilation-mouseover '((t (:inherit highlight))) "Face used to highlight text the mouse is over in compilation modes." :group 'compilation :group 'font-lock-highlighting-faces) I've requested this before, but it's always been resisted or ignored. I see no reason not to let users customize this. (We DTRT for mode-line mouseover, BTW: we define face `mode-line-highlight'.)