From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15312: Info (point-entered, point-left): Doc incomplete, hence incorrect Date: Mon, 16 Sep 2013 12:15:27 -0400 Message-ID: References: <87ppsiw22k.fsf@gmail.com> <83sixej6iz.fsf@gnu.org> <878uz573kr.fsf@gmail.com> <83fvtck8mv.fsf@gnu.org> <87hadrel77.fsf@gmail.com> <83zjrjiifl.fsf@gnu.org> <877gel1ejy.fsf@gmail.com> <87vc25z1pe.fsf@gmail.com> <83vc24hmtr.fsf@gnu.org> <83six8hfvl.fsf@gnu.org> <83ppschdqx.fsf@gnu.org> <83ob7wh6b4.fsf@gnu.org> <83hadnhpas.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379348179 14478 80.91.229.3 (16 Sep 2013 16:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2013 16:16:19 +0000 (UTC) Cc: 15312@debbugs.gnu.org, kjambunathan@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 16 18:16:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VLbTI-00026F-K3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2013 18:16:20 +0200 Original-Received: from localhost ([::1]:36254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbTI-0000iI-4K for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2013 12:16:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbT8-0000h6-72 for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2013 12:16:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLbT0-0002L7-TX for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2013 12:16:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbT0-0002L3-Qw for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2013 12:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VLbT0-00037P-8b for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2013 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2013 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15312 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15312-submit@debbugs.gnu.org id=B15312.137934813211944 (code B ref 15312); Mon, 16 Sep 2013 16:16:02 +0000 Original-Received: (at 15312) by debbugs.gnu.org; 16 Sep 2013 16:15:32 +0000 Original-Received: from localhost ([127.0.0.1]:41306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLbSV-00036Z-GA for submit@debbugs.gnu.org; Mon, 16 Sep 2013 12:15:32 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43459) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLbSS-00036Q-Jf for 15312@debbugs.gnu.org; Mon, 16 Sep 2013 12:15:29 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8GGFRAA009164; Mon, 16 Sep 2013 12:15:27 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 91C5AB40D3; Mon, 16 Sep 2013 12:15:27 -0400 (EDT) In-Reply-To: <83hadnhpas.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Sep 2013 09:48:11 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4703=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4703> : inlines <87> : streams <1038675> : uri <1538500> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78454 Archived-At: > Perhaps we need to step back and talk about the situations where these > hooks are supposed to be used. Because I cannot see any sense in > calling the hooks when the values of these properties don't change. Agreed, but the code also runs the hook when the value of the `point-entered' does not change but the value of some unrelated property changes. That is an error. >> The right thing to do is to declare point-entered and point-left >> properties as obsolete and replace them by something like cursor-entered >> and cursor-left properties which are only checked at command boundaries >> (or better, checked just before redisplay). > Redisplay can be forced as part of a command. I know, and I think that for most uses of these kinds of properties we'd also want to run the hook when redisplay is called in the middle of a command (e.g. in the middle of query-replace). Note that we'd probably also want to run the hook when redisplay is short-circuited by pending input. Stefan