From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2L1mCMIjPWSjOwEASxT56A (envelope-from ) for ; Mon, 17 Apr 2023 12:47:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id q5p9B8IjPWSPAwAAG6o9tA (envelope-from ) for ; Mon, 17 Apr 2023 12:47: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 B2693B344 for ; Mon, 17 Apr 2023 12:47:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poMNU-00019B-3V; Mon, 17 Apr 2023 06:46:32 -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 1poMNS-00017Q-N5 for emacs-orgmode@gnu.org; Mon, 17 Apr 2023 06:46:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poMNQ-0003LR-7m for emacs-orgmode@gnu.org; Mon, 17 Apr 2023 06:46:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 263BE2401E5 for ; Mon, 17 Apr 2023 12:46:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681728386; bh=IefIpBq2f1HyWH5PHNAfuO7xLTgZreIJbGWX/QRze8U=; h=From:To:Cc:Subject:Date:From; b=VUtTRih4DUHB6GPHgDmJ2auOmcIauyl7xYMZFCJiU7ItnaXMPSHYOWIKjxEbEV9B1 rozHmKL4TX7p5+RTEftgu5b6mZkvnuPge67uv+ftw5ujPDuLTNbCPPrgigbtsFczXb YTEWyAUbBgHOY1jDl18WNd3pwwZJlT602VMqDvYCf+RG3GIK4UPkB6xhJSIHYbB/Om 8spvWUG/8XvzOdf9BvhWPdtCXrpvcbUS80LVxeASJTWLQpx8uPgjT5CDPk+niG3Wxx +U6gSVURl7lf87CmkUJ62B4O3NdXlQLIteNrlxK4HtCiFpbCnywWBsjcgzEqr1vBZq TV38gfuGf11Kw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q0NyT4vMPz6tsg; Mon, 17 Apr 2023 12:46:25 +0200 (CEST) From: Ihor Radchenko To: Lin Jian Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-cite-activate causes org-fontify-like-in-org-mode to fail for a citation [9.6.4] In-Reply-To: <87sfczztg6.fsf@linj.tech> References: <87sfczztg6.fsf@linj.tech> Date: Mon, 17 Apr 2023 10:48:58 +0000 Message-ID: <87y1mqlr6t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H2=-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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681728449; a=rsa-sha256; cv=none; b=Ma5nRgvKz+QjUBzWruXG//T/lEf5zAqaWfxNFZiEmpQDQI6vEcj1x0LaTnMrUJQMjwrJcT dQWzl0a9I++vsAIL1ThOa08IKIG86dN8U4HUc0hXIJ/teQEhKvF7COKqog3KrM2P2WPMw/ T0iyiBBtdK2EepX1xhKtTnxNai2oCW+E2AT2DkJ6d42XEtFXD9c5FYFG8XJQq2kf71j63e 8Hw9vdqRQcKtCH6RoiU1wsjEjXjqVz/SgzccCUwLjC3a0B7pgIJm4JNCbEh6XASD3qEY7h SWA7CVr0NXhzU1bXl49A9RMm4RVAJCkR1cC3dSaSaYFAbWuXszQ16hui22mXWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VUtTRih4; 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=1681728449; 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=fM3RrpSH7mUT+hsNGR/Sukagw39QNmyEhLuk+5EnlLU=; b=r4UrL6AvwZqeT7DZv8JdKHTBhU/VFeEiCNsmKWfm9Pihriwqxm9Lad+iVSbtqHl6KBEWdq q8Ix43J3ZpY+21/ka69xut/r6LfeUw5Rnra8Y8ZYuO9oC3epPkSecLg78Bl9vbJ8V+icnr mcpFjJB+x8JI6bIfSTzBjcAAN1TwO7ik6POmLxXAbM0R9kuB1zC+dnzjjNjoI5QEEepSBY uVhRkZo/s/gS4Ny56zJNoV4azzE/g+fX6Vu8edAVkDVx/K4sCh41rcjJEJiDnD9tDzwfah MUpkbj35TAYtJFzwfF2unLk3hOAjjKjYNnBz2JS0WKUXl+zBWA7IIWV89kk8uA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.20 X-Spam-Score: -6.20 X-Migadu-Queue-Id: B2693B344 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VUtTRih4; 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 X-TUID: 3wulGN/FM0Us Lin Jian writes: > font-lock-default-fontify-region: End of buffer > > 6. I think the message in step 5 is a bug. If this bug is fixed, we > should see this in the *Message* buffer instead: > ... > At the end of [2], (match-beginning 0) is 1. At the end of [3], > (match-beginning 0) is changed to 35 by split-string. So, [4] is nil. > As a result, [5] runs, which causes an end-of-buffer error. > > I propose wrapping the whole let[6] in save-match-data to fix this bug. Thanks fore reporting and debugging! Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c827341df -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at