[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inhibit-point-motion-hooks and its replacement?
From: |
Stefan Monnier |
Subject: |
Re: inhibit-point-motion-hooks and its replacement? |
Date: |
Fri, 02 Sep 2016 11:27:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> 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