From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QAaUKlfkiWPmMAAAbAwnHQ (envelope-from ) for ; Fri, 02 Dec 2022 12:41:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OKeqKlfkiWPYyAAA9RJhRA (envelope-from ) for ; Fri, 02 Dec 2022 12:41:11 +0100 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 8A3758C37 for ; Fri, 2 Dec 2022 12:41:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p14Oy-0005Gs-I5; Fri, 02 Dec 2022 06:40:20 -0500 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 1p14Oo-0005GV-5V for emacs-orgmode@gnu.org; Fri, 02 Dec 2022 06:40:11 -0500 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 1p14Ok-00006z-5N for emacs-orgmode@gnu.org; Fri, 02 Dec 2022 06:40:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 19ADC240027 for ; Fri, 2 Dec 2022 12:40:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669981204; bh=XzVS80rXo+JIVSLxlqwVJexgRlJ79NL1rBcgk3qPDcs=; h=From:To:Cc:Subject:Date:From; b=SvBVEbOEYWzJ0qIwGjSzrVWmURw2EsuzDQZleVeDjfXBBC70CRSyVUjLBVG7s1yLR 7a098o0XGBPkdOoa8JLF/P6+KBgZmr4YZauf5E8BkLQJwC0//pwoJ0IoFV6epcssnJ Z5EAmix6s4JfNr8QBBNHnyM6cUO+T/4U0CpE6wIlEjcpO3jd6EHz46R5zO9Nm5eJQD 6hWNVDU5nv6nqmEShvwPwGIzCfoay5K5ifprvgji4Hc8nWBAosQhnmTkZoBSD7X0FX 4/0yIsqcGAXJ2a6Vafv0E26o3h/I9S/GmDqOMM3RWSolr0O2lQYjPDUkffEEQumpnd tY7/gyZga4ALQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NNrb71w75z9rxV; Fri, 2 Dec 2022 12:40:03 +0100 (CET) From: Ihor Radchenko To: Lin Sun Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] dead loop on (org-table-clean-line "|a|b|") [9.6 (release_9.6-3-ga4d38e @ share/emacs/29.0.60/lisp/org/)] In-Reply-To: References: <874juf3cnu.fsf@localhost> Date: Fri, 02 Dec 2022 06:40:01 +0000 Message-ID: <877czal35q.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669981271; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XzVS80rXo+JIVSLxlqwVJexgRlJ79NL1rBcgk3qPDcs=; b=WXXshtNfSPWzzMW6gAktGG15P/B+yOlZMyH04nLrDVX+A6nCUywfuzA2q2IrlkC6x5uO7l g0VBheIvBL7c3mk6UZi2mBq+knjmPfd5g90HqvepoiT2bktX8ht7sqSlZsu18n4lvTrdQQ /gBbN5KWhadtHAI+ijRhpg7NQum5qrWeYCXDwC8lF7WtWfSRSYX7PGYKKw3cb/e6KrlnEB JB6IpC0SjsqNP9ml8ItoAzR00dz4P7nDi3cMYdUoTYOXdfiJvkgUe6TcGE6uFNdpLePp0+ hTg6ByZAju+k3vI8MW5ikINyekRfCpZkXfEvvHGVrMoUOuh23rTUUb6DkYm4qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669981271; a=rsa-sha256; cv=none; b=u9pAInj7Q6tCbFQxuIUqKqgO3Xx1uQNQsrblhnaNkgqkMKAVFPfQPlc456xS2A9N6GwoPG ndTUhI0ZvYjozh+fONwEt7yFJTW66ocJxqyaOQKy8PL552KrL0UUlahxpdISYmDWREoxT6 M43bXBLUfPJdneKXH+5Ph/T/rkR83hkbdcRl+keWZV0kOiMRntn95iBrRwRtMiYZ2RfnBf UJ+pFrVp9VSh6TCK8K+pWOHi0HCf3+zUlt76hlVVU/QGtZykJciQjKnAr1IHHzx0YPqQ8Z jtlkhL4L1D5/iX9Sl9N9MlO3GnedHJ4Okpfco5FO/i4CAiaAkvcPX6vPic2qUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SvBVEbOE; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -4.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SvBVEbOE; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 8A3758C37 X-Spam-Score: -4.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2HnWX+TmKqml Lin Sun writes: >> I cannot reproduce. >> Can you please provide detailed steps starting from emacs -Q? > > The bug caused by the function org-table-clean-line=E2=80=8B calls the or= g-string-width=E2=80=8B inside a string-match=E2=80=8B clause without prote= ction, for the org-string-width=E2=80=8B maybe change the match data then c= ause the string-match run into wrong result. `org-string-width' does not touch match data. Considering that you can only reproduce with Spacemacs, it might be spacemacs screwing the match data. Not Org. There is no reason to fix something not caused by Org on Org side. I suggest you to contact Spacemacs devs. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at