From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Date: Sun, 09 Dec 2018 20:58:31 -0500 Message-ID: References: > > <83zhte3f4n.fsf@gnu.org>> <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1544407096 29711 195.159.176.226 (10 Dec 2018 01:58:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2018 01:58:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33664@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 10 02:58:12 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1gWApl-0007aq-HF for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Dec 2018 02:58:09 +0100 Original-Received: from localhost ([::1]:58119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWArs-0001sr-0D for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 21:00:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWArg-0001rW-44 for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 21:00:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWArb-0003Ok-4H for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 21:00:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWAra-0003Oa-Va for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 21:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gWAra-0007BH-QM for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 21:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Dec 2018 02:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33664 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33664-submit@debbugs.gnu.org id=B33664.154440714327509 (code B ref 33664); Mon, 10 Dec 2018 02:00:02 +0000 Original-Received: (at 33664) by debbugs.gnu.org; 10 Dec 2018 01:59:03 +0000 Original-Received: from localhost ([127.0.0.1]:40549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWAqd-00079c-Fa for submit@debbugs.gnu.org; Sun, 09 Dec 2018 20:59:03 -0500 Original-Received: from pmta11.teksavvy.com ([76.10.157.34]:11482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWAqb-000793-2F for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 20:59:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2F5BQCpxw1c/6OWs2tkHgEGBwaBVAYLAYIDgVYSiFOERosuAYIMEyIBmRYNhGYEAgKDGyM3Bg0BAwEBAQEBAQICAmkohT4BBAFWIwULCzQSFBgNJIUuCKZ5ih+MOIF/hCOKOiICkDqQOwmRZ4lmhF+CeJkwgVwjgVYzGggwgyiQeCSOGwEB X-IPAS-Result: A2F5BQCpxw1c/6OWs2tkHgEGBwaBVAYLAYIDgVYSiFOERosuAYIMEyIBmRYNhGYEAgKDGyM3Bg0BAwEBAQEBAQICAmkohT4BBAFWIwULCzQSFBgNJIUuCKZ5ih+MOIF/hCOKOiICkDqQOwmRZ4lmhF+CeJkwgVwjgVYzGggwgyiQeCSOGwEB X-IronPort-AV: E=Sophos;i="5.56,336,1539662400"; d="scan'208";a="57581842" Original-Received: from 107-179-150-163.cpe.teksavvy.com (HELO fmsmemgm.homelinux.net) ([107.179.150.163]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2018 20:58:32 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C4390AE97A; Sun, 9 Dec 2018 20:58:31 -0500 (EST) In-Reply-To: <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> (Drew Adams's message of "Sun, 9 Dec 2018 12:56:51 -0800 (PST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153288 Archived-At: > Thank you. I think it would be good if you would > add this info (exactly what you wrote is fine) to > the Commentary. I pushed something like that (see below). > It seems (to me, so far) like maybe the behavior > difference you described should not be cause for > deprecating text property `intangible'. If you can find a case where the old `intangible` property provides the behavior that's needed, feel free to send a bug-report to de-deprecate it. Stefan ;;;; Motivation ;; The old properties were very problematic in practice because they ;; operate at a much lower level and hence affect all motion ;; *functions* like goto-char, forward-char, ... hence breaking ;; invariants like: ;; ;; (forward-char N) == (progn (forward-char N1) (forward-char (- N N1))) ;; (point) == (progn (forward-char N) (forward-char -N) (point)) ;; (+ N (point)) == (progn (forward-char N) (point)) ;; ;; The problems would usually show up due to interaction between ;; unrelated code working in the same buffer, where one code used those ;; properties and the other (unknowingly) assumed those aren't used. ;; In practice a *lot* of code assumes there's no such funny business. ;; ;; Worse: all(?) packages using those properties don't actually want those ;; properties to affect motion at such a low-level, they only want to ;; affect the overall effect of commands, but not the effect of every ;; single point-motion that a given command happened to use internally.