From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Possible `point-entered' `point-left' Text Property Bug Date: Fri, 12 May 2006 14:34:16 -0400 Message-ID: <87r72zay8n.fsf@mit.edu> References: <87r7304jck.fsf@stupidchicken.com> <873bfff7x2.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147458843 17615 80.91.229.2 (12 May 2006 18:34:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 May 2006 18:34:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 12 20:33:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FecSa-0002uY-BT for ged-emacs-devel@m.gmane.org; Fri, 12 May 2006 20:33:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FecSZ-0003X0-St for ged-emacs-devel@m.gmane.org; Fri, 12 May 2006 14:33:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FecSP-0003Wh-1G for emacs-devel@gnu.org; Fri, 12 May 2006 14:33:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FecSN-0003W7-GO for emacs-devel@gnu.org; Fri, 12 May 2006 14:33:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FecSN-0003W4-Dm for emacs-devel@gnu.org; Fri, 12 May 2006 14:33:43 -0400 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FecU8-0003Uw-Pz; Fri, 12 May 2006 14:35:32 -0400 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 09DB1120077; Fri, 12 May 2006 14:34:17 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: <873bfff7x2.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 12 May 2006 13:51:37 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:54347 > I investigated some more, and found two separate bugs. The first bug > is that inhibit-point-motion-hooks was not being set to t during > Fline_beginning_position. > > The second bug is more subtle. > Here, inhibit-point-motion-hooks is bound to nil to avoid processing > the intangible property. But this also has the effect of spuriously > calling point-left and point-entered hooks if they are defined. Another possibility is to split inhibit-point-motion-hooks into two separate variables that suppress point-entered/point-left and use of the intangible property respectively. In that case, both Fline_beginning_position and the relevant part of line-move-1 would inhibit use of point-entered/point-left while allowing use of the tangible property.