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: Sat, 8 Dec 2018 19:53:38 -0800 (PST) Message-ID: <07d30d9e-62b0-401f-90e6-b0d054a71c40@default> References: > <83k1kl5ozh.fsf@gnu.org>> <87r2er62dz.fsf@mail.linkov.net> 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 1544327526 6090 195.159.176.226 (9 Dec 2018 03:52:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 03:52:06 +0000 (UTC) Cc: 33664@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 04:52:01 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 1gVq8O-0001Sy-Nk for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 04:52:01 +0100 Original-Received: from localhost ([::1]:53791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVqAV-0004Hv-G9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 22:54:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVqAN-0004Hm-Bk for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 22:54:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVqAM-0001gW-KW for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 22:54:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVqAM-0001gL-G7 for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 22:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gVqAM-0006jn-5L for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 22:54:02 -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 03:54: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.154432763425883 (code B ref 33664); Sun, 09 Dec 2018 03:54:02 +0000 Original-Received: (at 33664) by debbugs.gnu.org; 9 Dec 2018 03:53:54 +0000 Original-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 Original-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 Original-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== Original-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 Original-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 Original-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 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)] 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-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:153241 Archived-At: > > 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.