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 20:03:23 -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 1297829064 25285 80.91.229.12 (16 Feb 2011 04:04:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2011 04:04:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Stefan Monnier'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 16 05:04:20 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 1PpYck-0000BJ-Vu for ged-emacs-devel@m.gmane.org; Wed, 16 Feb 2011 05:04:19 +0100 Original-Received: from localhost ([127.0.0.1]:39832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpYck-00058v-9k for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2011 23:04:18 -0500 Original-Received: from [140.186.70.92] (port=37477 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpYcf-00056D-UA for emacs-devel@gnu.org; Tue, 15 Feb 2011 23:04:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpYce-0003Px-Ou for emacs-devel@gnu.org; Tue, 15 Feb 2011 23:04:13 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:26550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpYce-0003Pp-H3 for emacs-devel@gnu.org; Tue, 15 Feb 2011 23:04:12 -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 p1G449k4022109 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Feb 2011 04:04:11 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p1G440SV019368; Wed, 16 Feb 2011 04:04:00 GMT Original-Received: from abhmt015.oracle.com by acsmt353.oracle.com with ESMTP id 1009628971297829008; Tue, 15 Feb 2011 20:03:28 -0800 Original-Received: from dradamslap1 (/10.159.60.234) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 Feb 2011 20:03:27 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcvNgbKJHIkrvf7HRmqi42OISeRmMgACWELA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4D5B4CB9.00FD: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:136089 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). > > I understand, the question is about *you* as a user. No, you apparently do not understand. It is not about me. Or you. We have different views of users and customizing faces. > > 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. > > So, can you explain why? I did. Both in my last reply and previously. When mouse-face highlighting is on a full line I find simple underlining better than a flashy background. That's my preference, but the point is that mouseover highlighting on a long line has a different effect visually than it does on a short name or a button. It's about different classes of text that are highlighted - different use contexts. I mentioned (a) short text such as names, (b) long text such as table rows and code lines, (c) buttons, and (d) mode-line constructs (treated generally as buttons, but worth treating as a separate case - as they in fact are). There are perhaps other common classes, but those are the ones where I see a use for a separately customizable face. Today, the _only_ customizable mouseover face is for (d). And the only additional one I explicitly requested is for compile.el. > Also, is that really the only case where you > want mouse-face to look different? No. See what I wrote, including just above. Mouseover is already different for the mode line. And that's a good thing. > > 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? > > Because adding umpteen customization variables for all the cases where > some user might want to change a face makes no sense. No one said anything about adding umpteen variables (or faces, ahem). And no one said anything about adding such for every user who might want to change a face. There is no call for hyperbole. > So if there's a good reason why this particular case is likely to > happen to many users, a customization variable might be justified, but > otherwise having a generic solution (e.g. face-remapping) seems quite > sufficient. Sigh. Same song you've sung previously to defend hard-coding `highlight'...