unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: inhibit-point-motion-hooks and its replacement?
Date: Fri, 02 Sep 2016 11:27:21 -0400	[thread overview]
Message-ID: <jwvshtijpfh.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 22472.19457.59542.51233@gargle.gargle.HOWL

> 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




  reply	other threads:[~2016-09-02 15:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-01 15:40 inhibit-point-motion-hooks and its replacement? raman
2016-09-02 15:27 ` Stefan Monnier [this message]
2016-09-03 19:35   ` raman
2016-09-04  4:26     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvshtijpfh.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).