From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Date: Sun, 9 Dec 2018 12:56:51 -0800 (PST) Message-ID: <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> References: > > <83zhte3f4n.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544388969 1098 195.159.176.226 (9 Dec 2018 20:56:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 20:56:09 +0000 (UTC) Cc: 33664@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 21:56:04 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 1gW67Q-0000BD-89 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 21:56:04 +0100 Original-Received: from localhost ([::1]:56757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW69W-0008Md-W4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 15:58:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW69P-0008MW-Hv for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 15:58:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW69M-0003fH-2q for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 15:58:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gW69L-0003eX-Ut for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 15:58:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gW69L-00052a-MV for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 15:58:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Dec 2018 20:58:03 +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.154438902319288 (code B ref 33664); Sun, 09 Dec 2018 20:58:03 +0000 Original-Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 20:57:03 +0000 Original-Received: from localhost ([127.0.0.1]:40278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW68N-000511-A7 for submit@debbugs.gnu.org; Sun, 09 Dec 2018 15:57:03 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:43608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW68K-00050Q-Fv for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 15:57:01 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB9KnQQm151541; Sun, 9 Dec 2018 20:56:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=na69+9h0u1JK+p12Y+IEX80r/HTU7fcfgAgyImmtVe0=; b=L134qOEqGGICV4Q7+9EbguIBDnoIb4MzVVVJikbKoflg2qwDnJjhXEwd3C5NlmA4O/1y J7sWM66R+K0A3lMVUq5DbGU3eZneLdTK6r+spXrHmISMY1jj+dmSXz/5qHqo2J7BM0lW KegjT2fIJYxyv7/8aylOzc44nNb5NNAw7+cJJHVfISX+c+fYu/3AjGPMa6Ww1bMPMKxW eYbVJDlq2lHmAXG2qTRpF1BzrqaTnTEzC9o6Il1I2r5yaXUYH5z598G6JJzcujSbQVrU NlgXiPnw2Nbvnx9JXLpmFoVu6IiRoia/hLefCvLRI13Ij5Lxc2deC0FcbIr3cnQWArax wA== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2p85ctu1aw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Dec 2018 20:56:54 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB9Kuree001701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Dec 2018 20:56:53 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wB9Kupms024223; Sun, 9 Dec 2018 20:56:53 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9102 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812090192 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:153275 Archived-At: > > Specifically, I'd like to know some behavior > > differences - examples of when `intangible' text >=20 > With `intangible` you can have a situation where a chunk of code does >=20 > (goto-char POS) > BLAH > BLAH > BLAH >=20 > and it misbehaves because BLAH BLAH BLAH expects to run with point at > POS, > but some other package added an `intangible` property so the goto-char > actually ended up putting point somewhere else. >=20 > IOW `intangible` breaks all kinds of invariants like >=20 > (point) =3D=3D (progn (forward-char N) (forward-char -N) (point)) > (+ N (point)) =3D=3D (progn (forward-char N) (point)) >=20 > [ Admittedly these invariants aren't true when you bump into EOB but > a lot of code is prepared to deal with odd cases at EOB but is not > prepared for such surprises happening virtually anywhere. ] Thank you. I think it would be good if you would add this info (exactly what you wrote is fine) to the Commentary. Besides the difference in positions, aren't there other important differences that come from the `intangible' property changing Emacs behavior at a low level rather than in pre-display? Is it possible that someone might take advantage of that earlier, or lower-level, reaction? It seems (to me, so far) like maybe the behavior difference you described should not be cause for deprecating text property `intangible'. It might be cause for recommending to generally use `cursor-intangible-mode' instead. It sounds like both should probably be offered, with a description of the differences. Just one, hardly informed, opinion.