GNU bug report logs - #15312
Info (point-entered, point-left): Doc incomplete, hence incorrect

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Mon, 9 Sep 2013 13:34:02 UTC

Severity: minor

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 15312 <at> debbugs.gnu.org, kjambunathan <at> gmail.com
Subject: bug#15312: Info (point-entered, point-left): Doc incomplete, hence incorrect
Date: Mon, 16 Sep 2013 12:15:27 -0400
> 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




This bug report was last modified 11 years and 249 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.