From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: inhibit-point-motion-hooks and its replacement? Date: Fri, 02 Sep 2016 11:27:21 -0400 Message-ID: References: <22472.19457.59542.51233@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472829890 13834 195.159.176.226 (2 Sep 2016 15:24:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2016 15:24:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 02 17:24:43 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfqKg-0002r9-Qb for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2016 17:24:42 +0200 Original-Received: from localhost ([::1]:42680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqKe-0006m4-Gu for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2016 11:24:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqKZ-0006lv-Bg for emacs-devel@gnu.org; Fri, 02 Sep 2016 11:24:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfqKV-0003ON-Ev for emacs-devel@gnu.org; Fri, 02 Sep 2016 11:24:35 -0400 Original-Received: from [195.159.176.226] (port=41861 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqKV-0003N2-7d for emacs-devel@gnu.org; Fri, 02 Sep 2016 11:24:31 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bfqKP-0001D1-0J for emacs-devel@gnu.org; Fri, 02 Sep 2016 17:24:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:WYQdP0mLimBJLjTIj89u4JLYlew= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207134 Archived-At: > 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