From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: finger-pointer curser as default for mouse-face text Date: Mon, 25 Oct 2004 09:50:55 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098712292 22007 80.91.229.6 (25 Oct 2004 13:51:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 13:51:32 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, drew.adams@oracle.com, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 15:51:23 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 1CM5Fr-0006Xv-00 for ; Mon, 25 Oct 2004 15:51:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM5NV-0000jJ-6Y for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 09:59:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CM5NN-0000iz-OJ for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:59:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CM5NN-0000il-Bz for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:59:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM5NN-0000ig-6i for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:59:09 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CM5FU-0006u3-UI; Mon, 25 Oct 2004 09:51:01 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id A4E3B8282C6; Mon, 25 Oct 2004 09:51:00 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 2447D4AC070; Mon, 25 Oct 2004 09:50:56 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id B00F08CA23; Mon, 25 Oct 2004 09:50:55 -0400 (EDT) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Mon, 25 Oct 2004 14:51:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28914 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28914 >>>> What is the behavior of latex-preview in the case of mouse-1 and in >>>> the case of mouse-2? Is mouse-face applied to the actual text or >>>> just to the (before|after)-string? [...] >> So it's the image (which is placed on a before-string) > No insinuations, please. I could only "insinuate" since you did not reply to my original question "Is mouse-face applied to the actual text or just to the (before|after)-string?" > The image is placed in the display property of the text (actually, the > display property of an overlay, and this overlay has the mouse-face). Thanks. > It does not actually matter since I merely cited preview-latex as one > case that would appear not to fit the assumptions behind Kim's patch. I quite understand this part. It's clear that Kim's patch can introduce undesired behavior. The question is how often such undesired behavior happens in practice. I suspect that the number of packages where moving point into a piece of text with the `mouse-face' property does anything more than move point (while left-clicking only moves point) is extremely small. `preview-latex' is very much unusual in this respect. So I think the migration path should be to apply Kim's patch and provide a way for a package maintainer to override it in those rare cases where it interferes (e.g. it could check some text property "dont-remap-mouse-1-to-mouse-2"). Stefan