From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6GDUI05ot2RlYgAASxT56A (envelope-from ) for ; Wed, 19 Jul 2023 06:36:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yA3AI05ot2S0ZgAA9RJhRA (envelope-from ) for ; Wed, 19 Jul 2023 06:36:30 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1DAE241FEB for ; Wed, 19 Jul 2023 06:36:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Com2e5q2; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689741390; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m4KdsdjqkjixpzCcLQjXQpfKAuA19NVo9nMtdvnH1yI=; b=Tq//4f937w3qO6TNva0Z9hPwO+Qp3he3EK1JRni/+bW5VoctENVjREqmRoj/t2fBlXHUqW RkBW5gTT9glXphtG3xInrDqSLKQpJDquq+R2ir3um39nIxNfKx8cJdH7JkX+tp9AYLf0zU H3emkHNgR6zsZIxmPUPJ5iWVkU/gQBFND/DzMgH2UgmeiTIcLtDW9qkoZhv4JcsRWViyfT btiyIR+D2zdVjUx1UXTfM3dT0WJ3bj6pBnwbWDay/0iwCqQRRXEES8qnB5/ZTsRW82CQwg XjRfzDYx5wUPTVLqo/ySB/2YqkAXBpQM0KE+gNP4WvQDft2sTM6EawkVPDUHMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689741390; a=rsa-sha256; cv=none; b=S4QNnz/M6oYsZrXPiGjGAQ6dzou/oTdt8r+R2vLbon5Itkmcd+OffERwtlP+7gRY8v2cnn p/WpO1oOP6os0jjcZNIvEVlOJsu8fQxmsznsNOub8tu/XEENVfsqxckz/yaT8sE1Q8r5V3 Ybpw6q0Bpz1tfJ9KW0P8YIzUrtciy1E1+6gkuK1qsOUEJKCDXjzwpaMoWlBgqsGoL5QYTE lEsKj7QwYfjTql8nbnPk0AbBGISF+iEhV99VS+rxi5AHD2s55oL3me2KF1/P5aUrK1TL5i SaLKKv733j40XsrZmpQc76/yq7mB6ydpWMv5EZI1FtTGb0kEG79Dot8MwvuOng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Com2e5q2; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLyuJ-0008BW-DB; Wed, 19 Jul 2023 00:35:23 -0400 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 1qLyuH-0008B4-LP for emacs-orgmode@gnu.org; Wed, 19 Jul 2023 00:35:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLyuF-0008Jk-87 for emacs-orgmode@gnu.org; Wed, 19 Jul 2023 00:35:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E7BC1240027 for ; Wed, 19 Jul 2023 06:35:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689741315; bh=meTuAo70mAgKCkoxL7jEsGng//Ir27Gcmbw2ZNRjQ3g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Com2e5q2v9suWfTpSi3JympI3g2mqUZ1lwvHvX28iUZm9Wo5XI6Ny368ShyFj8AhS lmx8vHwhbYoZbUh4s0+UdXFMEunsoTh4/qLJxWuXN6e+FLXvEDdCReVyis1HeBGPlN o8bzbDzduKfDFo/JUG2O4wExsr4c9w5Sz1e+65HfNMgW1lDN0uJkFBuuHispyIzIUc WKnzvnoBXCmnGGm7cleqInDNOPBriljxGaWakYFgQoNtgGteGtr+Ku1tbTpYGl+32o ndvlM1RX70GPC8KB0mw+LKgS1AiNQRBdibaJA96hOTDsQFSztDUmf+082VXqxqJmxc 47fa7CMpDFcvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R5NKH1PBBz9s09; Wed, 19 Jul 2023 06:35:15 +0200 (CEST) From: Ihor Radchenko To: Jens Schmidt Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] SPACE jumps to tag in header line after hidden emphasis marker [9.7-pre (release_9.6.7-562-g5b6268 @ /home/jschmidt/work/org-mode/lisp/)] In-Reply-To: References: <8b691a7f-6b62-d573-e5a8-80fac3dc9bc6@vodafonemail.de> <87edl53ae3.fsf@localhost> Date: Wed, 19 Jul 2023 04:35:22 +0000 Message-ID: <87ilag1pth.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.38 X-Spam-Score: -8.38 X-Migadu-Queue-Id: 1DAE241FEB X-Migadu-Scanner: mx1.migadu.com X-TUID: 9JimBsMi1mHO Jens Schmidt writes: >> Fixed, on main. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3e3b873d3 > > Well, I have one not-so-minor nit here: With that commit you cannot > insert text *before* some text having hidden emphasis without breaking > the emphasis. More concretely (in an empty org-mode buffer): > > ... > C- ;; left-word > C- ;; left-word > SPC ;; org-self-insert-command > > The last SPC breaks the emphasis around the middle "test", which it did > not previously. Previously, the SPC would just move the whole > emphasized word one space to the right. Which I somehow got used to, > and probably many others as well. OMG. What we had in the past is because of an obscure internal, undocumented implementation detail of how Emacs adjusts point when it ends up inside invisible region: /* If the preceding character is both intangible and invisible, and the invisible property is `rear-sticky', perturb it so that the search starts one character earlier -- this ensures that point can never move to the end of an invisible/ intangible/rear-sticky region. */ Except that we do not have intanglible property there and the code below that comment does not always check for intanglible property. > OTOH, to fix my bug, only the first of the new `org-rear-nonsticky-at' > calls is actually needed. So probably we could have something like the > following to get my bug fixed without any changes in behavior (diff on > top of main, that is, in addition to your commit): I am not sure if it is a proper fix. The basic problem is that Org's syntax table does not declare emphasis markup as part of a word. I need to consult Emacs devs about rules of point adjustment. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at