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: can we please define a face for compile.el mouseover? Date: Tue, 15 Feb 2011 14:41:58 -0800 Message-ID: References: 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 1297809753 6369 80.91.229.12 (15 Feb 2011 22:42:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 22:42:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Stefan Monnier'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 15 23:42:29 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 1PpTbH-00081i-Ra for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 23:42:28 +0100 Original-Received: from localhost ([127.0.0.1]:42433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpTbH-0000Km-5z for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 17:42:27 -0500 Original-Received: from [140.186.70.92] (port=54156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpTbC-0000Kf-H2 for emacs-devel@gnu.org; Tue, 15 Feb 2011 17:42:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpTbB-0005CH-5r for emacs-devel@gnu.org; Tue, 15 Feb 2011 17:42:22 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:63360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpTbA-0005C7-Rs for emacs-devel@gnu.org; Tue, 15 Feb 2011 17:42:21 -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 p1FMgH9S005478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 15 Feb 2011 22:42:19 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p1FKjxnP017157; Tue, 15 Feb 2011 22:42:15 GMT Original-Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 1008892311297809719; Tue, 15 Feb 2011 14:41:59 -0800 Original-Received: from dradamslap1 (/10.159.58.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 Feb 2011 14:41:59 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcvNVTVHH8SkpWXaR5+DYrk7zY6h/QABjUbQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4D5B0148.00A5: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:136078 Archived-At: > > Can we please define a face to be used for the `mouse-face' > > property in the `compile.el' code? > > Why do you want a different mouse-face in compile.el than elsewhere? I want users to _be able_ to customize mouseover appearance differently in one context from another. I don't want to _require_ them to use different faces any more than I want to require them to use the same face (the case today, and not even customizable). In my own case, I want mouseover in compilation/grep buffers to just underline the text. But I generally want mouseover to use face `highlight' elsewhere. And on the mode line I want it to use face `mode-line-highlight' - which it does (that's a raised box BTW - it has no relation to the mouseover appearance elsewhere). I also apply `mouse-face' to the whole grep/compilation line, but that's just me. I believe that users should get visual feedback indicating that they can click anywhere on the line. Also, mousing over the line anywhere (e.g. far off to the right) highlights (underlines) the whole line, making it easy to visually scan rows (like using a ruler) - it's especially useful with sparse table data or code. And of course I've mentioned all of this umpteen times in the past... But thanks for asking. ;-) > > 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 > > Actually, you should be able to do it cleanly using face-remapping. Users should be able to do it by _customizing_ the particular face used for mouseover in the particular context. Why complicate things unnecessarily? One might be able to use face remapping here and there all over the place to simulate face customization, but why? If you think two particular contexts are similar a priori, then define their mouseover faces to inherit the same way - same default appearance. But at least let the user customize them to look different if that's what s?he wants.