From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gDrcExLBeGINSwEAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 09:21:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KHq4ExLBeGIAeQEAauVa8A (envelope-from ) for ; Mon, 09 May 2022 09:21:54 +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 EB562A1D3 for ; Mon, 9 May 2022 09:21:53 +0200 (CEST) Received: from localhost ([::1]:50668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnxiK-0004ZT-PA for larch@yhetil.org; Mon, 09 May 2022 03:21:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnain-0001jx-UD for emacs-orgmode@gnu.org; Sun, 08 May 2022 02:48:50 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:40855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnaim-0002yy-0j for emacs-orgmode@gnu.org; Sun, 08 May 2022 02:48:49 -0400 Received: by mail-ej1-x62a.google.com with SMTP id l18so21342981ejc.7 for ; Sat, 07 May 2022 23:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=Vsv3nfnHkQf9Wgh3OGGMxtQQECEg1Wtaz+QpFu0MeSs=; b=d58Sqf0G/BFdpHnMt9kN8VhQ5j5G6hZK7Mq0dTcWwJIiwUkz1STFnPHx9epoAoWedt xpfJA7IY02ACiyxzU7uV/Xj2ehy2ofB6kRhWF4RXQyvQZdAVRdvuLOlBqlPcKyHCTenp 4A94UFxW1E+bEpqOgqxOlK0p+pgkjpzI2Dd8M+oMEcYxhjFQ4+2I1IB35LPICOUEOQze VFaAgOGaKCVChUO9yLKPyCfUUudClhZevdL7wbJy1PFRThERZcXZlFqXUx8Mxbje4y5c Gd+OjuSR79Ue/Tu9QyTsF59moGlS80BQsvtKUT/OT3tF8CG2IRVRZuIybvC1mCilGK/A WB4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Vsv3nfnHkQf9Wgh3OGGMxtQQECEg1Wtaz+QpFu0MeSs=; b=xrojsX4kmvP9ok/inW1DG5kneUt1I/XYg5rTc1gE9QzL7fqJ746HLVnuNK0YZNSH1L XXK8Ai4WQ/YDQXEGcsZq1ZSNoj7wxgpa5mOoIeocRjXEQmgfdq293MzHaCt5fF54YzOR tsrTQ1c2590QsENFHXof24527CNaaF6+GvdWazPsxnn+zoqCMO9E4YfXOcsjMB7LOmji BBtdvciCP2W2y0tegMLuFRkq7YIaPkBAEYDCtfEmvXNhH7dF0wg8u+9tRxbAJZmFdY07 2MPJe4Et7DftPNWfUoxSxs0JI0c1qBnNmvUdxpxYqT/qK7K23+OEtv9s1VYIul/4SiPr epdg== X-Gm-Message-State: AOAM531Uo/NJWeMFSW0bWxS2FLteBhbTJoxaqESn7D/fOFMfTfQzBgLx PQ1U5OuUaqrz54rSoLLSAz2NIz2T1hM= X-Google-Smtp-Source: ABdhPJzakVDKQ5TTKBTlqisrUmkoxBbdxl1+6/6fh3g3DCvHP0syZQyS2AEH02YSo/k5vOS9Pb1diw== X-Received: by 2002:a17:907:9609:b0:6f4:d4d7:7c82 with SMTP id gb9-20020a170907960900b006f4d4d77c82mr9465606ejc.483.1651992526284; Sat, 07 May 2022 23:48:46 -0700 (PDT) Received: from gimli (host-79-24-66-182.retail.telecomitalia.it. [79.24.66.182]) by smtp.gmail.com with ESMTPSA id hx15-20020a170906846f00b006f3ef214e4csm3805488ejc.178.2022.05.07.23.48.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 May 2022 23:48:45 -0700 (PDT) From: matteo To: emacs-orgmode@gnu.org Subject: [BUG] orgtbl-toggle-comment hangs if table is in first line [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/local/share/emacs/28.1/lisp/org/)] Date: Sun, 08 May 2022 08:48:44 +0200 Message-ID: <874k20v7sj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=matteo.leccardi@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Mon, 09 May 2022 03:17:04 -0400 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652080914; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Vsv3nfnHkQf9Wgh3OGGMxtQQECEg1Wtaz+QpFu0MeSs=; b=vC8WiJ8UqnUZD4xXs5PFSACoWVRhPZ7Rh/pCnPtK2T/WZWjQ9pgD/tHDK8nitJYR25gX5D Pla7maJJgidKO7GXt/4VIEObAxR4zYHWCHXFYLaSbNmnKN4hHSmYVc9bFFiRmaC7+hgvtv btLn802JPnvP907D8uekjuMWmG++M0VlEyi9FoRvJA85v63+N9R5uouBwlkOv2jzONfwUh d/mbb+ITEWRinSkW34DXSi2cSa0IapEop/KH5CHpGny79SmUYw1w4eBQHvNx+aXW7WN5Kz 0ucUp3Xn/KnzMtfJGyw5fAshH5agezGNgX8+hygRgAzfY9McqVowrAOLsiR6Rg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652080914; a=rsa-sha256; cv=none; b=jWKHnUmCatfGg+T+1J0Ry+D3lhw1RHMLn1w+FOB7I8tWc3+LQuMcYPHNGktbu9dVOWAtyl sKzf2GDqBuIae6Z5/qG09tBeNYuJCXSGcho06h47F5/V8BG51eIARsOM7AVCyjOcufqm5K 4gV88aomNUhSmGP/RWbL8dSNoJuKX/hYGi9W6uU6ocDAY+YZ+CkhqM9gJCUW7J7LJVYfXW 4+DINiCAl1BwbSD2PsKsioSPSObtL+VWtapU6ss+Jhg2mxhgi64Ni0mh3SFpIohLaSZ3e+ 3V0eJ8hANIN7fshulS90vqb0Y75y4Ju41wOHfa+7N//sAAwpYPq0P6fhPk2Peg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=d58Sqf0G; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=d58Sqf0G; dmarc=pass (policy=none) header.from=gmail.com; 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: EB562A1D3 X-Spam-Score: -3.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: O6qp9XPv1aM/ Hi to all. If in an org buffer there is a table, commented or not, starting from the first line of the buffer, the command orgtbl-toggle-comment hangs and must be terminated with C-g. Step to reproduce: 1) create an org buffer with the following content starting from line 1: | table | | | 2) move the point in the table 3) execute M-x orgtbl-toggle-comment Expected outcome: the table gets commented like this # | table | # | | Actual outcome: Emacs hangs, C-g make it responde again, but the table does not change. Emacs : GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-04-09 Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/local/share/emacs/28.1/lisp/org/) Thanks Matteo