From unknown Sat Jun 21 10:41:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33664 <33664@debbugs.gnu.org> To: bug#33664 <33664@debbugs.gnu.org> Subject: Status: 26.1; Document vars and functions in `cursor-sensor.el' Reply-To: bug#33664 <33664@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:41:37 +0000 retitle 33664 26.1; Document vars and functions in `cursor-sensor.el' reassign 33664 emacs submitter 33664 Drew Adams severity 33664 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 10:15:55 2018 Received: (at submit) by debbugs.gnu.org; 7 Dec 2018 15:15:55 +0000 Received: from localhost ([127.0.0.1]:37156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVHr8-0005ac-Pm for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:15:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVHr6-0005aO-2l for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:15:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVHr0-0004IP-2Y for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:15:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gVHqz-0004IF-Ud for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:15:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVHqz-0007Np-44 for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2018 10:15:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVHqv-0003y5-2m for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2018 10:15:45 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:40900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gVHqu-0003rW-Pb for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2018 10:15:41 -0500 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 wB7F8nIF165992 for ; Fri, 7 Dec 2018 15:15:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=uTBFoHVMW+noBYspOKKEovXTVWzOhKGfQQ+l2y3Ax+M=; b=jQhRHtHu5bkWBOCrKE7NXk4C28UgGamT7+noq/2B/7gNlLPyewp5axdhlENNGRmcIZUp iGNlQbmROYHHcumiHWa5sWgU2S7gpSOsOeIciGOHMhzunqXdAWthCXOY0O9bwQWT8Nh8 P78ul9yGST3lipiw3fWbfHBDgDBEe72Md+59RqSUuJf0d4nPCjl9iQbPvay7IF7JG0Kr YtaKCNM6fBcJkveFPaR8l/t43SvdsIaBbKtvjZDmoevQJ7f+l5UNiiR88qq1A+KV4r2J ndN1ATOv/sHKMiIiJX+BU2OVmooG5Ue+ziiB3yYNB0xZr3FSxlbKlokW6CZ9pf6l/ag4 qg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2p3hquedey-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 07 Dec 2018 15:15:39 +0000 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 wB7FFceG030317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 7 Dec 2018 15:15:38 GMT 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 wB7FFchh026942 for ; Fri, 7 Dec 2018 15:15:38 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 7 Dec 2018 15:15:37 +0000 (UTC) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 26.1; Document vars and functions in `cursor-sensor.el' X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9099 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 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-1812070122 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Please document the variables and functions in `cursor-sensor.el'. It would be a step backward for Emacs to document less and less. Calling something an "internal" function is not, in itself, a sufficient reason not to give it a doc string. In particular, please add a doc string for variable `cursor-sensor-inhibit'. I was reading the `isearch.el' code and saw this: (push 'isearch cursor-sensor-inhibit). Had to start searching `cursor-sensor.el' to try to understand what this variable is for. Even that didn't really help, since there is nothing in `cursor-sensor.el' that would lead one to understand that the variable is used somehow as a list of values. Even grepping for that var didn't help with such understanding, as there are no uses of it outside of isearch.el. Isearch apparently goes to the trouble of allowing for the var to be used as a list (similar to `buffer-invisibility-spec', perhaps), but there is no comment, doc, or spec describing this behavior/use in `cursor-sensor.el'. In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor `Microsoft Corp.', version 10.0.16299 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 10:28:36 2018 Received: (at 33664) by debbugs.gnu.org; 7 Dec 2018 15:28:36 +0000 Received: from localhost ([127.0.0.1]:37172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVI3Q-0005tk-Ad for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:28:36 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:48186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVI3P-0005tX-14 for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 10:28:35 -0500 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 wB7FNODZ178522 for <33664@debbugs.gnu.org>; Fri, 7 Dec 2018 15:28:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=P9E0fBIu8eJvRRxZ1XSudvSjJKqKyoj2KsooF3bFNpw=; b=PV4cRaJ+HzWL+47YGhAK3Ld1bBQtInaChPWqAxfEN9bvHc4VrLzH2m+w7vDhUqHcY6u/ LCTcX8OvNduZijFLMWVQvXFr3aSf33gKkhSWnhX2H9r50BxdT615xoT9+L/q0MR9Zrp3 oXLJzIRTpXgiljXab8J5aEOfKtvK1ZNzBGdFb0LGmDmhcYcQvr9h9FJWqljG0x1MoDTu c/EiC8WnePk/J+VNNcrNntCYMu5zaRKPDfzH3QuroNRDAfQS6dyrLCm5K4sU3QF3y8a1 Q1oiUXN6/1DbtMu4DPf08T8gUA/j2Tv1loIGNL+CfNoOZ2ypHSPvC1D9CUGgG9EKOCOd Lw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2p3hquefk7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <33664@debbugs.gnu.org>; Fri, 07 Dec 2018 15:28:28 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB7FSRRk007996 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <33664@debbugs.gnu.org>; Fri, 7 Dec 2018 15:28:28 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wB7FSRCq018085 for <33664@debbugs.gnu.org>; Fri, 7 Dec 2018 15:28:27 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 7 Dec 2018 15:28:26 +0000 (UTC) From: Drew Adams To: 33664@debbugs.gnu.org Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9099 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=416 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812070124 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) To be clear: I don't really care about the "internal" functions here. I would like some doc for or explanation of variable `cursor-sensor-inhibit', particularly if the use of it by Isearch is part of the design/intention. (It also wouldn't hurt to add a doc string for non-"internal" functions `cursor-sensor-tangible-pos' and `cursor-sensor-move-to-tangible'.) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 10:34:58 2018 Received: (at 33664) by debbugs.gnu.org; 7 Dec 2018 15:34:58 +0000 Received: from localhost ([127.0.0.1]:37186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVI9a-00064H-CU for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:34:58 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:54684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVI9Y-000644-Gl for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 10:34:56 -0500 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 wB7FTBHP183395 for <33664@debbugs.gnu.org>; Fri, 7 Dec 2018 15:34:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=cQR1rk+k1MDDSiRruErnSizwSJfkc9ICjpxbydppZOo=; b=cXZlECVWv5YfF1EI6HSe9PZIyi6IZX1LT+MyrCTBRmU4ivLaQoj2oouWz8zmxi9JaVa+ 7HTozSdp1cfA9tK6Y/4UM0ECcRkxtKD7TxuPEPMur0A57ZuZt7rbrnh/v9KI/yH6DbM7 ii+TqKmLIW6LOoIJMCi996xXefp9RiA87CoAaSSMHZtZiLzvKRKrKl6gtmEWTrZpDFHT wHSErqZZf0OJJlIcpx/3BpLJ7z5WHOxBusMOOQTl/M5xJ6NLLGSuumgnSvkVvDybhCF/ 5VFt4pFfu4BvxUT/vmJ1s55S1TlkmSfSjyw/S8dSp5o0K5iFALeeGrNiV2jGNc11XpIq ow== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2p3hquegsw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <33664@debbugs.gnu.org>; Fri, 07 Dec 2018 15:34:50 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB7FYiZK003922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <33664@debbugs.gnu.org>; Fri, 7 Dec 2018 15:34:45 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wB7FYi6n022116 for <33664@debbugs.gnu.org>; Fri, 7 Dec 2018 15:34:44 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 7 Dec 2018 15:34:43 +0000 (UTC) From: Drew Adams To: 33664@debbugs.gnu.org Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9099 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=511 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812070125 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) BTW, seems like function `cursor-sensor--intangible-p' should not be "internal". (Should be renamed to `cursor-sensor-intangible-p' and given a doc string.) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 10:35:52 2018 Received: (at 33664) by debbugs.gnu.org; 7 Dec 2018 15:35:52 +0000 Received: from localhost ([127.0.0.1]:37190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVIAR-00065w-PW for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:35:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVIAQ-00065k-3w for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 10:35:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVIAH-0006uf-On for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 10:35:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVIAH-0006uN-Kl; Fri, 07 Dec 2018 10:35:41 -0500 Received: from [176.228.60.248] (port=1292 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gVIAH-0001Z6-7D; Fri, 07 Dec 2018 10:35:41 -0500 Date: Fri, 07 Dec 2018 17:35:30 +0200 Message-Id: <83k1kl5ozh.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: (message from Drew Adams on Fri, 7 Dec 2018 15:15:37 +0000 (UTC)) Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Fri, 7 Dec 2018 15:15:37 +0000 (UTC) > From: Drew Adams > > Please document the variables and functions in `cursor-sensor.el'. It > would be a step backward for Emacs to document less and less. Calling > something an "internal" function is not, in itself, a sufficient reason > not to give it a doc string. > > In particular, please add a doc string for variable > `cursor-sensor-inhibit'. > > I was reading the `isearch.el' code and saw this: (push 'isearch > cursor-sensor-inhibit). Had to start searching `cursor-sensor.el' to > try to understand what this variable is for. Even that didn't really > help, since there is nothing in `cursor-sensor.el' that would lead one > to understand that the variable is used somehow as a list of values. > > Even grepping for that var didn't help with such understanding, as there > are no uses of it outside of isearch.el. > > Isearch apparently goes to the trouble of allowing for the var to be > used as a list (similar to `buffer-invisibility-spec', perhaps), but > there is no comment, doc, or spec describing this behavior/use in > `cursor-sensor.el'. AFAIK, about the only person who could do something about this doesn't read bug reports. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 10:58:08 2018 Received: (at 33664) by debbugs.gnu.org; 7 Dec 2018 15:58:08 +0000 Received: from localhost ([127.0.0.1]:37203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVIVz-0006cG-V1 for submit@debbugs.gnu.org; Fri, 07 Dec 2018 10:58:08 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:53740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVIVy-0006bk-Ix for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 10:58:06 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB7FrW1R166309; Fri, 7 Dec 2018 15:58:00 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=X6o1sRTIeHf+75mGgr56uZl+y+570D4tDwt6/6wl0m4=; b=CEJ3bGzOM9mM9kasEX/wqYNGKYJ7kovySyu2MLxfjwOfHY9AqRsGQNcfGY0fwcVFBg+q JTPOSmBjIw4wnC4Kx/1UDTlOw+IGVg3ZRMYyRHSmWwmOU8xkZ5vX+PTnS/s1QdIeMrPC FUuZrb0e2ytVAW9+aAtZR98PSutnUTctfQsMFAa1vqIHT15mo8xyPfRe7yWyIatDDm7I ndr9/DjKGtaP8kI/aggKHmZ494ezPw9Pskqcn+vMCyhB+sVgQgNkGdFozIozSWcsVtp3 FN9xyjQy/GgrsYO2BU2zFdgj9s9oqzukq/Aw2iq1gyc4n/WU3Po6BpPHWhqYeLtQ7H8r vw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2p3jxrxgs0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Dec 2018 15:58:00 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB7FvxNr020100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Dec 2018 15:57:59 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wB7FvwIX003098; Fri, 7 Dec 2018 15:57:59 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 7 Dec 2018 15:57:58 +0000 (UTC) From: Drew Adams To: Eli Zaretskii , Drew Adams Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: <> <<83k1kl5ozh.fsf@gnu.org>> In-Reply-To: <<83k1kl5ozh.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9099 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=730 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812070128 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > AFAIK, about the only person who could do something about this doesn't > read bug reports. Maybe you mean might instead of could? Anyone who has the will could, I suppose. But maybe the use of the variable as a list value is only an Isearch thing (that's the only place it's used, so far), and is not something intended/prescribed by `cursor-sensor.el'. Juri reads bug reports, and he has worked on Isearch (dunno whether he worked on this part of it). Maybe the design/use of the var for Isearch could be documented in a comment in `isearch.el', at least. But if its use as a list is part of the general design/intention then that should be made clear in `cursor-sensor.el', I think. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 11:29:54 2018 Received: (at 33664) by debbugs.gnu.org; 7 Dec 2018 16:29:54 +0000 Received: from localhost ([127.0.0.1]:37215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVJ0k-0007O7-HM for submit@debbugs.gnu.org; Fri, 07 Dec 2018 11:29:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVJ0j-0007Ns-5Q for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 11:29:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVJ0a-0005Zv-Rr for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 11:29:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVJ0a-0005ZZ-M4; Fri, 07 Dec 2018 11:29:44 -0500 Received: from [176.228.60.248] (port=4728 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gVJ0a-00087B-6n; Fri, 07 Dec 2018 11:29:44 -0500 Date: Fri, 07 Dec 2018 18:29:32 +0200 Message-Id: <83in055mhf.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: (message from Drew Adams on Fri, 7 Dec 2018 15:57:58 +0000 (UTC)) Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: <> <<83k1kl5ozh.fsf@gnu.org>> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Fri, 7 Dec 2018 15:57:58 +0000 (UTC) > From: Drew Adams > Cc: 33664@debbugs.gnu.org > > > AFAIK, about the only person who could do something about this doesn't > > read bug reports. > > Maybe you mean might instead of could? Anyone who has > the will could, I suppose. Patches are welcome, as always. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 22:24:50 2018 Received: (at 33664) by debbugs.gnu.org; 8 Dec 2018 03:24:50 +0000 Received: from localhost ([127.0.0.1]:37467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVTEY-0002Uz-8T for submit@debbugs.gnu.org; Fri, 07 Dec 2018 22:24:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVTEW-0002Un-0N for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 22:24:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVTEQ-0008No-6l for 33664@debbugs.gnu.org; Fri, 07 Dec 2018 22:24:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVTEJ-0008Kt-4X; Fri, 07 Dec 2018 22:24:36 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gVTEI-0006VD-T4; Fri, 07 Dec 2018 22:24:34 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Eli Zaretskii In-Reply-To: <83k1kl5ozh.fsf@gnu.org> (message from Eli Zaretskii on Fri, 07 Dec 2018 17:35:30 +0200) Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: <83k1kl5ozh.fsf@gnu.org> Message-Id: Date: Fri, 07 Dec 2018 22:24:34 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > AFAIK, about the only person who could do something about this doesn't > read bug reports. Who is it? Maybe we could write to per directly. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 08 19:13:30 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 00:13:30 +0000 Received: from localhost ([127.0.0.1]:39020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVmiw-0001D4-C2 for submit@debbugs.gnu.org; Sat, 08 Dec 2018 19:13:30 -0500 Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:33884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVmiu-0001Cp-Da for 33664@debbugs.gnu.org; Sat, 08 Dec 2018 19:13:29 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 87C64123E57; Sun, 9 Dec 2018 00:13:26 +0000 (UTC) Received: from pdx1-sub0-mail-a20.g.dreamhost.com (unknown [100.96.11.179]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 39774123E4F; Sun, 9 Dec 2018 00:13:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a20.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 09 Dec 2018 00:13:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Stupid-Stupid: 6a0d429e6247c64f_1544314406331_1283795043 X-MC-Loop-Signature: 1544314406331:3393529789 X-MC-Ingress-Time: 1544314406330 Received: from pdx1-sub0-mail-a20.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a20.g.dreamhost.com (Postfix) with ESMTP id D419D80765; Sat, 8 Dec 2018 16:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=h5gUyfgJR4QAEQ39H4IBT8VX4hw=; b= PQTpDLuzHiHdMAOg2jWXwx99GwE4R9C306rmr4IwGKC2cBrkhzmlRVE7OQfynlo+ L3ZZvH8JpvSWetGBVrZTXlzEXJzogo4JicHyscx4DJxmb5l8/d9N3FeXoEF09lww IIESmVjbFsaAlldFxJO2EssbNiE4ZpGEu0hyas++P/I= Received: from mail.jurta.org (m91-129-103-7.cust.tele2.ee [91.129.103.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a20.g.dreamhost.com (Postfix) with ESMTPSA id 2D52480760; Sat, 8 Dec 2018 16:13:22 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a20 From: Juri Linkov To: Drew Adams Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Organization: LINKOV.NET References: > <83k1kl5ozh.fsf@gnu.org>> Date: Sun, 09 Dec 2018 01:10:32 +0200 In-Reply-To: (Drew Adams's message of "Fri, 7 Dec 2018 15:57:58 +0000 (UTC)") Message-ID: <87r2er62dz.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudeguddgudekfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomhenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Juri reads bug reports, and he has worked on Isearch > (dunno whether he worked on this part of it). Maybe > the design/use of the var for Isearch could be > documented in a comment in `isearch.el', at least. I could help but I know nothing about cursor-sensor. Please explain the purpose of cursor-sensor, then I'll write a comment in `isearch.el'. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 08 22:53:54 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 03:53:54 +0000 Received: from localhost ([127.0.0.1]:39122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVqAD-0006jP-Sb for submit@debbugs.gnu.org; Sat, 08 Dec 2018 22:53:54 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:55920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVqAC-0006jC-DZ for 33664@debbugs.gnu.org; Sat, 08 Dec 2018 22:53:53 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB93rkFE119097; Sun, 9 Dec 2018 03:53:46 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=OTH8AZO7KnfdgaHkjBDIuBzcM7U9AC0jg0totyN6LfE=; b=P45zZ4TgvQwOymLqNavssj8oqWqWocYGAK88fdVLcy+kg4iE9LlaxPagl8LB9FFHL4Gh uSr19YNNqYgofzUyP4kx1sD0l4wvRD0VrXBdTgyCxOjBdOKzO6N2t2RuGtrhmLTE63UW iKBf2Kcy14h9pSpz3EkAuQuS1wq0eqAlKpCv9vTxUV/2od2Z1eaogfN1C6MoDl5gI4dm BMeyFxTsrk4D388hpDJSoqOiUJ82MM2jLpAqPFy2cEzkVDSBNiuw+7iEMW/RWfpSRNxe +UZ1OG9Jtw7TVqAHSwm68+eCB9VNxGmMrzmUpNRwvNt+Gq/ZLy7vkDPPynLmFBbqnlBd dw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2p86kqhqeb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Dec 2018 03:53:46 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wB93reTP002347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Dec 2018 03:53:40 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wB93rdhp014502; Sun, 9 Dec 2018 03:53:40 GMT MIME-Version: 1.0 Message-ID: <07d30d9e-62b0-401f-90e6-b0d054a71c40@default> Date: Sat, 8 Dec 2018 19:53:38 -0800 (PST) From: Drew Adams To: Juri Linkov Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: > <83k1kl5ozh.fsf@gnu.org>> <87r2er62dz.fsf@mail.linkov.net> In-Reply-To: <87r2er62dz.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9101 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-1812090036 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > Juri reads bug reports, and he has worked on Isearch > > (dunno whether he worked on this part of it). Maybe > > the design/use of the var for Isearch could be > > documented in a comment in `isearch.el', at least. >=20 > I could help but I know nothing about cursor-sensor. > Please explain the purpose of cursor-sensor, then > I'll write a comment in `isearch.el'. I too know nothing about it. I was hoping that it was perhaps you who added its use in Isearch. It is apparently a replacement for using text property `intangible', which its comments say is too low-level. It activates the intangibility of text when you turn on `cursor-intangible-mode'. The point of the bug report is to get a little more doc for it. Isearch's use of it seems to be to just make sure that intangible text is not recognized as such, i.e., it is treated as normal, tangible text by Isearch. At least that's my reading of the code. Isearch seems to politely ensure that it does not interfere with other uses of variable `cursor-sensor-inhibit' It does so not by recording the value before changing it, and then restoring that value when finished, but adding a non-nil value to it as a list element. That seems like a good (and interesting) approach. But there is nothing in the definition, doc, or comments for that var that would lead one to understand that that's a good (or recommended) way to use it, let alone the expected way. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 09:01:09 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 14:01:09 +0000 Received: from localhost ([127.0.0.1]:39349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVzdt-0007xV-Bc for submit@debbugs.gnu.org; Sun, 09 Dec 2018 09:01:09 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:50345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVzdp-0007xJ-Sw for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 09:01:07 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wB9E13Dw009353; Sun, 9 Dec 2018 09:01:04 -0500 Received: by pastel.home (Postfix, from userid 20848) id A338F6A438; Sun, 9 Dec 2018 09:01:02 -0500 (EST) From: Stefan Monnier To: Drew Adams Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Message-ID: References: Date: Sun, 09 Dec 2018 09:01:02 -0500 In-Reply-To: (Drew Adams's message of "Fri, 7 Dec 2018 15:15:37 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6435=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6435> : inlines <6979> : streams <1806630> : uri <2762389> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I installed the patch below. Stefan diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 14cc4fba45..78d51c6dbb 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -3398,6 +3398,9 @@ Special Properties is moved away from any position that has a non-@code{nil} @code{cursor-intangible} property, just before redisplay happens. +When the variable @code{cursor-sensor-inhibit} is non-@code{nil}, the +@code{cursor-intangible} property is ignored. + @item field @kindex field @r{(text property)} Consecutive characters with the same @code{field} property constitute a @@ -3579,6 +3582,9 @@ Special Properties property or leaving it. The functions are called only when the minor mode @code{cursor-sensor-mode} is turned on. +When the variable @code{cursor-sensor-inhibit} is non-@code{nil}, the +@code{cursor-sensor-functions} property is ignored. + @item composition @kindex composition @r{(text property)} This text property is used to display a sequence of characters as a diff --git a/lisp/emacs-lisp/cursor-sensor.el b/lisp/emacs-lisp/cursor-sensor.el index 7e3088dd91..21c48f830f 100644 --- a/lisp/emacs-lisp/cursor-sensor.el +++ b/lisp/emacs-lisp/cursor-sensor.el @@ -22,17 +22,29 @@ ;;; Commentary: -;; This package implements the `cursor-intangible' property, which is -;; meant to replace the old `intangible' property. To use it, just enable the -;; `cursor-intangible-mode', after which this package will move point away from -;; any position that has a non-nil `cursor-intangible' property. This is only -;; done just before redisplay happens, contrary to the old `intangible' -;; property which was done at a much lower level. +;; This package implements the `cursor-intangible' and +;; `cursor-sensor-functions' properties, which are meant to replace +;; the old `intangible', `point-entered', and `point-left' properties. + +;; To use `cursor-intangible', just enable the +;; `cursor-intangible-mode' minor mode, after which this package will +;; move point away from any position that has a non-nil +;; `cursor-intangible' property. This is only done just before +;; redisplay happens, contrary to the old `intangible' property which +;; was done at a much lower level. + +;; To use `cursor-sensor-functions', enable the `cursor-sensor-mode' +;; minor mode, after which the `cursor-sensor-functions' will be +;; called just before redisplay happens, according to the movement of +;; the cursor since the last redisplay. ;;; Code: ;;;###autoload -(defvar cursor-sensor-inhibit nil) +(defvar cursor-sensor-inhibit nil + "When non-nil, suspend `cursor-sensor-mode' and `cursor-intangible-mode'. +By convention, this is a list of symbols where each symbol stands for the +\"cause\" of the suspension.") (defun cursor-sensor--intangible-p (pos) (let ((p (get-pos-property pos 'cursor-intangible))) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 10:16:21 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 15:16:21 +0000 Received: from localhost ([127.0.0.1]:40108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW0of-0001nu-Go for submit@debbugs.gnu.org; Sun, 09 Dec 2018 10:16:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW0oc-0001ne-DW for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 10:16:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW0oS-000897-Gy for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 10:16:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW0oS-00088x-Cr; Sun, 09 Dec 2018 10:16:08 -0500 Received: from [176.228.60.248] (port=2850 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gW0oS-0002DZ-0C; Sun, 09 Dec 2018 10:16:08 -0500 Date: Sun, 09 Dec 2018 17:15:52 +0200 Message-Id: <83zhte3f4n.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Sun, 09 Dec 2018 09:01:02 -0500) Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Stefan Monnier > Date: Sun, 09 Dec 2018 09:01:02 -0500 > Cc: 33664@debbugs.gnu.org > > I installed the patch below. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 13:33:17 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 18:33:17 +0000 Received: from localhost ([127.0.0.1]:40234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3tE-0007JQ-CM for submit@debbugs.gnu.org; Sun, 09 Dec 2018 13:33:17 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:35426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3tA-0007IS-Vh for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 13:33:14 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB9IWvTX039251; Sun, 9 Dec 2018 18:33:06 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=rI8mfOiH6O0/BkmUV9qhqW0WgIdqJ0n1hVPYxeZmFx4=; b=NwQFN0Kg+IFGHZh6A7hnPfAZiWb+91waKfr8x1lxypPUveX9lB34SpcNPXZE8ULyXi3J AGKcPEZp8rBjbOaCRor0HCetxA5yt250fy4xpccJmotKIV28wshJDkbBq/e15BON8j+/ qPuuEJyqtSvg00eUFKq42XNNYgOmEoZ2F+3KqmIUC6YUObGf81uT+AYF2zYl8ekKQH4d 8s4GJypT+T8lfYfOVlBk8eKmxA1daFMWSG7UCPZBuZ79i7TkGFBKan1TYn7aVOSQ3aE+ ZvvaAADeeMn3qBOujXsS26hFM11Qdc3kLL61jfb9TRLec2+QnGDdmA8X6TY+LYMxmdd8 pw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2p86kqju3w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Dec 2018 18:33:06 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB9IX1Oj010135 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Dec 2018 18:33:01 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wB9IWxGd008338; Sun, 9 Dec 2018 18:33:01 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 9 Dec 2018 10:32:58 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Stefan Monnier Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: <> <> <<83zhte3f4n.fsf@gnu.org>> In-Reply-To: <<83zhte3f4n.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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=582 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812090171 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > I installed the patch below. >=20 > Thanks! +1. The bug can be closed, IMO. But one thing that I'd like to see/know, is some idea of what "at a much lower level" means here: This is only done just before redisplay happens, contrary to the old `intangible' property which was done at a much lower level. Specifically, I'd like to know some behavior differences - examples of when `intangible' text property is handled and what the resulting behavior difference is. Even examples of problems that using that text property can cause would help. Putting such additional info in the Commentary would be useful, I think. It would help motivate the new mode and make clear whether and why/when you might still want to use the text property. Or if the answer to that is a solid no and never then it would still help to better understand. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 13:38:21 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 18:38:21 +0000 Received: from localhost ([127.0.0.1]:40246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3y9-0007RW-CO for submit@debbugs.gnu.org; Sun, 09 Dec 2018 13:38:21 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:34998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW3y7-0007RH-Mk for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 13:38:20 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB9IY48p034946; Sun, 9 Dec 2018 18:38:13 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 : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Yz5F7dQr/C9vgj5b6sZj3pAaLVkpQ/13ieT++I5gtSE=; b=NAvK3ph+xIZFnKI4f37+Wtzv0EcrBr9Gr0Uddm9ussKXxdqOL2jAbBIqgRFPM4wDviar 584pIKbn0RBI3KmaaVgUU9Mck4+61VocaVGyfSxtXSBRzfGy9qy8ZEvHU2o5peV74QJf orlcJiCxgCH0RkhrW+7/ccwmVAHeOnFxFhSZxpwWMXeRVXOODInCPJedLxgLdc55ItXR ooiCEt8whr5ArqW43C7d+i6xCM/KSRHxcHRAzW3DHxY8e2UgaOVSUUaIQIqWFz7M0k/2 APhHH9qWx2MnQW2mgDtCQdMedvIRe5go8MD8gMKYJd7iCRwfpcLh5Ukf4b4p/RdLIvn7 rA== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2p83fdu29t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Dec 2018 18:38:13 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wB9IcCXd011572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Dec 2018 18:38:12 GMT 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 wB9IcBkW020113; Sun, 9 Dec 2018 18:38:11 GMT MIME-Version: 1.0 Message-ID: <2d046b88-a442-43ec-98a1-88a5a96f1e7c@default> Date: Sun, 9 Dec 2018 10:38:10 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Stefan Monnier Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: <> <> <<83zhte3f4n.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-1812090172 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > +1. The bug can be closed, IMO. Oh, but one other thing: We're still saying that it's enough that the variable be Boolean. OK - that's true, and that's perhaps all that matters to `cursor-sensor.el'. But what about Isearch's use of it? There seems to be a disconnect of sorts, wrt intention. Should the variable be documented more in line with the Isearch use of it: encourage pushing to a list value instead of just setting to some other non-nil value? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 14:35:46 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 19:35:46 +0000 Received: from localhost ([127.0.0.1]:40269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW4ri-0002dF-1J for submit@debbugs.gnu.org; Sun, 09 Dec 2018 14:35:46 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:60503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW4rg-0002d6-4g for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 14:35:44 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wB9JZgp7007563; Sun, 9 Dec 2018 14:35:43 -0500 Received: by pastel.home (Postfix, from userid 20848) id BBE856A438; Sun, 9 Dec 2018 14:35:42 -0500 (EST) From: Stefan Monnier To: Drew Adams Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Message-ID: References: > > <83zhte3f4n.fsf@gnu.org>> Date: Sun, 09 Dec 2018 14:35:42 -0500 In-Reply-To: (Drew Adams's message of "Sun, 9 Dec 2018 10:32:58 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6435=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6435> : inlines <6979> : streams <1806652> : uri <2762480> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Specifically, I'd like to know some behavior > differences - examples of when `intangible' text With `intangible` you can have a situation where a chunk of code does (goto-char POS) BLAH BLAH BLAH 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. IOW `intangible` breaks all kinds of invariants like (point) == (progn (forward-char N) (forward-char -N) (point)) (+ N (point)) == (progn (forward-char N) (point)) [ 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. ] Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 15:57:03 2018 Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 20:57:03 +0000 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 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 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== 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 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 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 MIME-Version: 1.0 Message-ID: <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> Date: Sun, 9 Dec 2018 12:56:51 -0800 (PST) From: Drew Adams To: Stefan Monnier Subject: RE: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: > > <83zhte3f4n.fsf@gnu.org>> 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 20:59:03 2018 Received: (at 33664) by debbugs.gnu.org; 10 Dec 2018 01:59:03 +0000 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 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: =?us-ascii?q?A2F5BQCpxw1c/6OWs2tkHgEGBwaBVAYLA?= =?us-ascii?q?YIDgVYSiFOERosuAYIMEyIBmRYNhGYEAgKDGyM3Bg0BAwEBAQEBAQICAmkohT4?= =?us-ascii?q?BBAFWIwULCzQSFBgNJIUuCKZ5ih+MOIF/hCOKOiICkDqQOwmRZ4lmhF+CeJkwg?= =?us-ascii?q?VwjgVYzGggwgyiQeCSOGwEB?= X-IPAS-Result: =?us-ascii?q?A2F5BQCpxw1c/6OWs2tkHgEGBwaBVAYLAYIDgVYSiFOERos?= =?us-ascii?q?uAYIMEyIBmRYNhGYEAgKDGyM3Bg0BAwEBAQEBAQICAmkohT4BBAFWIwULCzQSF?= =?us-ascii?q?BgNJIUuCKZ5ih+MOIF/hCOKOiICkDqQOwmRZ4lmhF+CeJkwgVwjgVYzGggwgyi?= =?us-ascii?q?QeCSOGwEB?= X-IronPort-AV: E=Sophos;i="5.56,336,1539662400"; d="scan'208";a="57581842" 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 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C4390AE97A; Sun, 9 Dec 2018 20:58:31 -0500 (EST) From: Stefan Monnier To: Drew Adams Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Message-ID: References: > > <83zhte3f4n.fsf@gnu.org>> <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> Date: Sun, 09 Dec 2018 20:58:31 -0500 In-Reply-To: <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> (Drew Adams's message of "Sun, 9 Dec 2018 12:56:51 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 09 22:09:39 2018 Received: (at 33664) by debbugs.gnu.org; 10 Dec 2018 03:09:39 +0000 Received: from localhost ([127.0.0.1]:40587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWBwx-0000OE-6m for submit@debbugs.gnu.org; Sun, 09 Dec 2018 22:09:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWBwv-0000O0-7J for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 22:09:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWBwp-0001Nn-Ea for 33664@debbugs.gnu.org; Sun, 09 Dec 2018 22:09:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWBwi-0001IM-2n; Sun, 09 Dec 2018 22:09:24 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gWBwh-0004xU-Tn; Sun, 09 Dec 2018 22:09:23 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sun, 09 Dec 2018 09:01:02 -0500) Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: Message-Id: Date: Sun, 09 Dec 2018 22:09:23 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] Thank you. We needed you for this job. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 18:13:05 2019 Received: (at 33664) by debbugs.gnu.org; 12 Oct 2019 22:13:05 +0000 Received: from localhost ([127.0.0.1]:34393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJPdJ-000864-9d for submit@debbugs.gnu.org; Sat, 12 Oct 2019 18:13:05 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJPdG-00085i-JJ for 33664@debbugs.gnu.org; Sat, 12 Oct 2019 18:13:03 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJPdC-0000eY-3I; Sun, 13 Oct 2019 00:13:00 +0200 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' References: > > <83zhte3f4n.fsf@gnu.org>> <2d046b88-a442-43ec-98a1-88a5a96f1e7c@default> Date: Sun, 13 Oct 2019 00:12:57 +0200 In-Reply-To: <2d046b88-a442-43ec-98a1-88a5a96f1e7c@default> (Drew Adams's message of "Sun, 9 Dec 2018 10:38:10 -0800 (PST)") Message-ID: <874l0dipee.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: >> +1. The bug can be closed, IMO. > > Oh, but one other thing: > > We're still saying that it's enough that > the variable be Boolean. OK - that's true, > and that's perhaps all that matters to > `cu [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33664 Cc: 33664@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Drew Adams writes: >> +1. The bug can be closed, IMO. > > Oh, but one other thing: > > We're still saying that it's enough that > the variable be Boolean. OK - that's true, > and that's perhaps all that matters to > `cursor-sensor.el'. > > But what about Isearch's use of it? There > seems to be a disconnect of sorts, wrt > intention. > > Should the variable be documented more in > line with the Isearch use of it: encourage > pushing to a list value instead of just > setting to some other non-nil value? This was part of the patch: +(defvar cursor-sensor-inhibit nil + "When non-nil, suspend `cursor-sensor-mode' and `cursor-intangible-mode'. +By convention, this is a list of symbols where each symbol stands for the +\"cause\" of the suspension.") So I think this has been documented now, unless I misunderstand what you mean, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 18:13:09 2019 Received: (at control) by debbugs.gnu.org; 12 Oct 2019 22:13:10 +0000 Received: from localhost ([127.0.0.1]:34396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJPdN-00086N-Jv for submit@debbugs.gnu.org; Sat, 12 Oct 2019 18:13:09 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJPdL-00086F-JD for control@debbugs.gnu.org; Sat, 12 Oct 2019 18:13:07 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJPdI-0000ek-W0 for control@debbugs.gnu.org; Sun, 13 Oct 2019 00:13:07 +0200 Date: Sun, 13 Oct 2019 00:13:04 +0200 Message-Id: <8736fxipe7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #33664 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 33664 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 33664 quit From unknown Sat Jun 21 10:41:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 10 Nov 2019 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator