From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64724: 30.0.50; Inconsistency between manual, comments in the code, and implementation of point adjustment Date: Fri, 21 Jul 2023 13:51:04 +0300 Message-ID: <83cz0l1qsn.fsf@gnu.org> References: <87bkg81j0i.fsf@localhost> <83fs5j4zti.fsf@gnu.org> <878rbarjuv.fsf@localhost> <83pm4m3mkh.fsf@gnu.org> <87tttx7leo.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64724@debbugs.gnu.org, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 21 12:51:32 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qMnjP-0006Fm-8Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jul 2023 12:51:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMnix-0000Ks-DA; Fri, 21 Jul 2023 06:51:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMniv-0000Kj-WF for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 06:51:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMniv-0004jL-Ob for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 06:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMniv-0002aw-KH for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 06:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jul 2023 10:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64724 X-GNU-PR-Package: emacs Original-Received: via spool by 64724-submit@debbugs.gnu.org id=B64724.16899366449947 (code B ref 64724); Fri, 21 Jul 2023 10:51:01 +0000 Original-Received: (at 64724) by debbugs.gnu.org; 21 Jul 2023 10:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:60657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMnie-0002aN-BK for submit@debbugs.gnu.org; Fri, 21 Jul 2023 06:50:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMnic-0002aB-GT for 64724@debbugs.gnu.org; Fri, 21 Jul 2023 06:50:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMniV-0004bf-18; Fri, 21 Jul 2023 06:50:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=70aSXxztRTgoEHgqKCfjtBEUdICB26vldJdRaaxLmmE=; b=RyR5UF+5+8N3nyjfs2Ef Ah8Mv7ZNM9TDilrUJEQoFwNuyR2KPMjGg+f7wVph8dxcMFa/5jEb8T0TGF8c5oio3OBidexf8HBzS /acnpnZSM8aVKfTERYa06jN4+/7Z2fdBkTBmlN2HJ9ayG4QNdZ8WCvv6bcGkOCBg48UwQu5QFdwJz 6B4cg9KKqHDPwWqsd/WsL1JrlWLXFiKFXR11ZCu8ABu6ctasY1igpvpoVs08pphB6jz1aW5Hu3U0B nHa43WiG97epzFwDEAafesrIjOoCV1h7AbJTD3I6abTZmQ3/VfhRrMpYNruCn8gIVUiHuIslNXZ93 FDOL0jVm46Y6gg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMniO-0000ov-4O; Fri, 21 Jul 2023 06:50:34 -0400 In-Reply-To: <87tttx7leo.fsf@localhost> (message from Ihor Radchenko on Fri, 21 Jul 2023 07:50:55 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265671 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, 64724@debbugs.gnu.org > Date: Fri, 21 Jul 2023 07:50:55 +0000 > > Eli Zaretskii writes: > > >> So, there is no problem with this section of the manual. The problem is > >> that manual does not describe the behavior with invisible text > >> boundaries I was trying to figure out. > > > > Which aspects of the behavior you describe are not mentioned in the > > manual. It does refer to invisible text. > > It talks about "in the middle of a sequence .. that ... is invisible" > > Emacs cannot display the cursor when point is in the middle of a > sequence of text that has the ‘display’ or ‘composition’ property, or is > invisible. Therefore, after a command finishes and returns to the > command loop, if point is within such a sequence, the command loop > normally moves point to the edge of the sequence, making this sequence > effectively intangible. > > The situation I encountered is when point ends up not in the middle, but > already on the edge. So, Emacs moving point to _other_ edge was > surprising. That's because where to move point in these situations depends on where it was before. We could describe these details of the heuristics we use, but I very much doubt it will be useful in practice. And the heuristics could change in the future, which makes this a maintenance problem. So I tend to think this bug should be closed with no further action. The main purpose of that node is to explain how to disable this point adjustment, not describe in detail what it does and how.