unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* inhibit-point-motion-hooks and its replacement?
@ 2016-09-01 15:40 raman
  2016-09-02 15:27 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: raman @ 2016-09-01 15:40 UTC (permalink / raw)
  To: emacs-devel

The Info section on text properties declares
inhibit-point-motion-hooks obsolete.

That same section also declares   point-entered and point-left
obsolete and points instead at cursor-sensor as the new goodness. 

cursor-sensor in turn has a variable cursor-sensor-inhibit which is
undocumented --- so what is the new replacement for inhibit-point-motion-hooks?
-- 

-- 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: inhibit-point-motion-hooks and its replacement?
  2016-09-01 15:40 inhibit-point-motion-hooks and its replacement? raman
@ 2016-09-02 15:27 ` Stefan Monnier
  2016-09-03 19:35   ` raman
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2016-09-02 15:27 UTC (permalink / raw)
  To: emacs-devel

> That same section also declares   point-entered and point-left
> obsolete and points instead at cursor-sensor as the new goodness. 

> cursor-sensor in turn has a variable cursor-sensor-inhibit which is
> undocumented --- so what is the new replacement for inhibit-point-motion-hooks?

The NOP operation should do it.

inhibit-point-motion-hooks is used to disable the effects of
text-properties like point-entered/left and `intangible' which operate
at a very low level (they affect everything including like goto-char).

The replacements for point-entered/left and `intangible' in
cursor-sensor do not affect low-level operations (they only kick in
between commands), so all uses I've found of inhibit-point-motion-hooks
can be simply dropped once you don't use point-entered/left and
`intangible' any more.


        Stefan




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: inhibit-point-motion-hooks and its replacement?
  2016-09-02 15:27 ` Stefan Monnier
@ 2016-09-03 19:35   ` raman
  2016-09-04  4:26     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: raman @ 2016-09-03 19:35 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan -- In my case (aka emacspeak) it's not a case of my using
point-entered --- I guard against those hooks when speaking content  --
so in a nutshell I'll have to wait till all uses of point-entered are
gone across the various emacs libraries --
-- 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: inhibit-point-motion-hooks and its replacement?
  2016-09-03 19:35   ` raman
@ 2016-09-04  4:26     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2016-09-04  4:26 UTC (permalink / raw)
  To: raman; +Cc: emacs-devel

> Stefan -- In my case (aka emacspeak) it's not a case of my using
> point-entered --- I guard against those hooks when speaking content  --
> so in a nutshell I'll have to wait till all uses of point-entered are
> gone across the various emacs libraries --

Yes, that's a fairly common case, actually.


        Stefan



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-04  4:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-01 15:40 inhibit-point-motion-hooks and its replacement? raman
2016-09-02 15:27 ` Stefan Monnier
2016-09-03 19:35   ` raman
2016-09-04  4:26     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).