From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64724: 30.0.50; Inconsistency between manual, comments in the code, and implementation of point adjustment Date: Thu, 20 Jul 2023 09:51:52 +0000 Message-ID: <878rbarjuv.fsf@localhost> References: <87bkg81j0i.fsf@localhost> <83fs5j4zti.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64724@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 20 11:52:23 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 1qMQKd-0000GN-0P for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 11:52:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMQKM-0002ZL-7z; Thu, 20 Jul 2023 05:52:06 -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 1qMQKJ-0002Z7-Kz for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 05:52:04 -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 1qMQKI-0005r2-Fl for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 05:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMQKI-0000Ot-8M for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 05:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jul 2023 09:52:02 +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.16898467111523 (code B ref 64724); Thu, 20 Jul 2023 09:52:02 +0000 Original-Received: (at 64724) by debbugs.gnu.org; 20 Jul 2023 09:51:51 +0000 Original-Received: from localhost ([127.0.0.1]:57702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMQK7-0000OU-C9 for submit@debbugs.gnu.org; Thu, 20 Jul 2023 05:51:51 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:49209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMQK4-0000OH-8D for 64724@debbugs.gnu.org; Thu, 20 Jul 2023 05:51:49 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6E96F240105 for <64724@debbugs.gnu.org>; Thu, 20 Jul 2023 11:51:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689846702; bh=l7jOkH3F4BGMTV5X+3v7ckXxPfOlmioyqVpmpn+HspQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=NgQlZnglY/EcezrEZc5mNFmrCGOGai4EyI5D+6v2JzuvwfN9jTshjceRVjwqz9Vmb mdniD06ItYg5ZvzLvfwRYfYimKNIBuH9QF0SbWcZFTSghBlnG17Edh5kdGRu2m2zX2 HDL2P+Rtp0atvdlzk28bxAWIUz6DzYU/D61VApqke07d2FxsOwnD9lBiZLZRwPG4j9 p/eMxEWWDj4CPfiOnbwRfzbJh49pAj2hVFazLDjzgFcfwZqk0bcfM6d9mf9HHOKnCV UwdxI57MabHkYSbPLtHNmWD6W6sIef+4cqh8+2wx3JwmmQEhD2v7fFWLqDo1fjL3ag 0gDs9cIYHKixA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R67Hx1xQTz6v01; Thu, 20 Jul 2023 11:51:41 +0200 (CEST) In-Reply-To: <83fs5j4zti.fsf@gnu.org> 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:265579 Archived-At: Eli Zaretskii writes: >> May you (1) document this behaviour in the manual; (2) clarify what's up >> with intanglible. > > I think you confuse two different point-adjustment behaviors. What > the ELisp manual describes is the one implemented in > adjust_point_for_property and the code which calls it from > command_loop_1. set_point_both does a different job for different > situations, AFAIU. > If you ignore set_point_both, what exactly is wrong about that short > section in the manual? Let me describe the full sequence how I arrived to that manual page: 1. We had a situation where `backward-word' moved further than expected: =word M-b =word This was despite "=" not considered to be a word constituent in syntax table. 2. I noticed that this behavior is related to point movement and invisible text and searched manual index for "point", "invisible". The only match was "22.6 Adjusting Point After Commands" I assumed that it is describing all the cases related to interaction between point and invisible text. 3. I've read that section of the manual and did not find anything about point ending up not inside, but at the boundary of invisible text. 4. I reached to sources and tried to track down the cause, eventually arriving to `set_point_both'. 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. (Or does not properly mark the relevant section with index keywords). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at