From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iCGRH9C0bGKt3QAAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 06:02:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8OAOINC0bGJ7uAAA9RJhRA (envelope-from ) for ; Sat, 30 Apr 2022 06:02:24 +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 3E2D49BB7 for ; Sat, 30 Apr 2022 06:02:24 +0200 (CEST) Received: from localhost ([::1]:47184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkeJL-0006Zx-F4 for larch@yhetil.org; Sat, 30 Apr 2022 00:02:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkeI2-0006YT-C5 for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkeI2-00040F-2o for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkeI1-000178-TU for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#45915: 28.0.90; deletechar distorts org-table Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sat, 30 Apr 2022 04:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45915 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: Tak Kunihiro Received: via spool by 45915-submit@debbugs.gnu.org id=B45915.16512912064112 (code B ref 45915); Sat, 30 Apr 2022 04:01:01 +0000 Received: (at 45915) by debbugs.gnu.org; 30 Apr 2022 04:00:06 +0000 Received: from localhost ([127.0.0.1]:55721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkeH8-00014F-7Y for submit@debbugs.gnu.org; Sat, 30 Apr 2022 00:00:06 -0400 Received: from mail-pj1-f49.google.com ([209.85.216.49]:45751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkeH6-00012R-EB for 45915@debbugs.gnu.org; Sat, 30 Apr 2022 00:00:05 -0400 Received: by mail-pj1-f49.google.com with SMTP id w17-20020a17090a529100b001db302efed6so7300844pjh.4 for <45915@debbugs.gnu.org>; Fri, 29 Apr 2022 21:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=GYbS7FqMoh4zg+/SMglbIo4RVcyLRS9my9FV0g0BO9A=; b=AU7SBZiH7W0lE4+Wkg2LL4BOHS9yg0rOs7zuNvFOS2dksJPF1sqN8NcaAUPUXC+889 BUNLT0YGXgRl0LI5YB5QbOs5Ri/jOihQ59YGi+QWaQDMtziqjcFT+Nq9S/iqZW0fT/Hj a/HebXGHj+Oy2+zH+qgIX2DcCjDxhsye8DzKGasr8QnmGYdoEw2boxFlsFsjzNmPDVL3 JpwC4VInNSYzkh3/OJ9psGhnb8bQPjkdbT2kVM/4670PlCawHivpTU5NN7HnHKyMzLx2 W0SHcX24Fcb8fXOYxfnJ4g7cacJJZujTOenSc+7Q1qh94XJ33XXLSMCt09pEkwsvqtbn acDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=GYbS7FqMoh4zg+/SMglbIo4RVcyLRS9my9FV0g0BO9A=; b=Ol8KiG1Umx0WVZU5K9eO7/zW/pz/8wg/0qqZX1l7ZrOfMFqO67z87A4t2m0fEGpERK n+MLqEE3kZwyME3+5mmWOUu/vDQMgnnADoINPMwxxBs0D8TxmrzuzHZYL3Fg8qdVRt9z OXvnvODIhE5yLpmbJ9H78svGTVwBW3CT+2IP84ntAT5MQSI7KZBV+0RfIGGzwODUOJGV ogjbn7ncCv/QrpnLm1IG8tTD699jsI/P00/x0R4RKS8Ok94ZEwMM+4tbbSmDZMq2N8l8 fBtlqxmnenut4jG6DWu76XzRqRe/Bjc501aa3SFwl4XT4I3kANk+Tf8f7xYSYU7H/iLs 72sA== X-Gm-Message-State: AOAM531oSoVRKYOjS5SnE2Pfut9MzJ+M4iOzHb6Gm1aU1omDUGTNCozX M5KMLC7q8bzDgGE8pUUio4c= X-Google-Smtp-Source: ABdhPJyCj+dfG7KWWjvwmwELj5+TEcPBXk7+t8NrU0ewUj/qHp3Kk5wilvGgo6NGHrI3BFLnOV6pFw== X-Received: by 2002:a17:90b:11d1:b0:1db:d99f:62cc with SMTP id gv17-20020a17090b11d100b001dbd99f62ccmr2445255pjb.200.1651291198713; Fri, 29 Apr 2022 20:59:58 -0700 (PDT) Received: from localhost ([45.83.130.130]) by smtp.gmail.com with ESMTPSA id x48-20020a056a000bf000b0050dc76281dcsm451119pfu.182.2022.04.29.20.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 20:59:58 -0700 (PDT) From: Ihor Radchenko In-Reply-To: References: <20210116.170134.789950463868688311.tkk@misasa.okayama-u.ac.jp> <87im477xpk.fsf@gnu.org> <1AD1B9B7-5A15-4F86-9274-B04B83694C85@misasa.okayama-u.ac.jp> <877dc0sqm6.fsf@localhost> Date: Sat, 30 Apr 2022 12:00:47 +0800 Message-ID: <87ilqrusnk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tkk@misasa.okayama-u.ac.jp, 45915@debbugs.gnu.org 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=1651291344; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=GYbS7FqMoh4zg+/SMglbIo4RVcyLRS9my9FV0g0BO9A=; b=SClttu3ODwOkhsuSHNQQHIdB7usC7t7Cq8IIhWFsg5m6lZ+yphFyM9QqkYB/93I1GKKRry 1wPCIQzXtS6SDVlNkJ8N4xmvWKyqqdQ83g76DaqNMkIhJgeItqEfWzcaxeSART776atZar QVZVYnZS3DahwQSAwIb9OpMQIqTgzIy8C2Wma0XW8TPeZiTHZBqm9lwRBnwwDxZuAaZuj3 4S249aiL+MEXgIu2/upr582yYtK99mtDxbMaq3R7UkkJcLHBIYxFzlOjGVE43b5b93A+Yq gYre1DOQ+oD5v/GsoNkVUUrxT8U/bXZ4ICujiNnFIZ9aiK1HVqnZ37gS1PMbFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651291344; a=rsa-sha256; cv=none; b=ExYmISoEjeNV2qp9/CISQivujjGsk88wGEWZ+tnvfnR0YRLbxbwbQJqoJ9AS6m8iJTlYQp WoAmSxLrBMJpwdtI7xpakzPgVgpb4pTfrPOjFw8TuIgz5XRnFgedw1Jc3vLgs1BGCs8Q54 5J6n4jIvhNVGiEKiMgHUtds/NEx+KKi0YYBwSY3A39DX3ggovB3wcx12f04CEZnV64qq2K Ul5dRTfqYEX5LLYy9N2CttsJxe001aZLkQUntPPjGBS6sQVr+pkRHpzV6iBGzH6GFkIh/U xQ4EcSR2uKY9lUaoi3ZFpTZik6abm/ejw94eM7sA4w2KV5MO3u88bXuGzBFfaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=AU7SBZiH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=AU7SBZiH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 3E2D49BB7 X-Spam-Score: 6.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: fXO7vyD/+RbG Tak Kunihiro writes: > Thank you for the patch. I applied the patch to org-table.el on Emacs > 28.0.90. > > And I still see the problem there. Is the problem solved by the patch > on your environment? The problem was solved on my side, but _not_ using your reproducer explicitly. If I save the buffer from your reproducer as a file and later open in, the patch does solve the problem. However, when I run the reproducer as is, a similar-looking problem emerges. Using your reproducer, something very strange is going on. With the patch, is correctly mapped to org-delete-char, which calls (delete-char 1) at some point. However, this (delete-char 1) somehow deletes 2!! chars instead of 1. This should be some tricky Emacs issue (bug?). In any case, I am not ready to dig into what is going on in Emacs. I do not think that such problem is going to appear during normal Emacs usage. At least, I was unable to reproduce it by other means than your reproducer function. To illustrate the issue, one can use the following version of the reproducer. Feel free to report this to Emacs upstream. (defun emacs-bug-reproduce-45915 () "Reproduce bug#45915." ;; (gnus-read-ephemeral-emacs-bug-group 45915) (interactive) (with-current-buffer (get-buffer-create "*temp buffer*") (erase-buffer) (require 'org) (orgtbl-mode 1) (insert (format "emacs-version: %s, org-version: %s\n" emacs-version org-version)) (insert "| | rownames | | / | | |---+----------| | | a |")) (switch-to-buffer-other-window "*temp buffer*") (execute-kbd-macro (kbd "M-< C-n C-n C-n C-n C-f C-f")) (message "I will hit S-.") (sit-for 2) (execute-kbd-macro (kbd "S-")) (message "I will hit .") (sit-for 2) ;; (execute-kbd-macro (kbd "")) (delete-char 1) (message "I will call previous-line.") (sit-for 2) (call-interactively 'previous-line)) Best, Ihor