From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 sPMwEom0bGK9iQAAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 06:01:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oF2BEom0bGKlOAAAauVa8A (envelope-from ) for ; Sat, 30 Apr 2022 06:01:13 +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 C3F8F11012 for ; Sat, 30 Apr 2022 06:01:12 +0200 (CEST) Received: from localhost ([::1]:46266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkeIB-0005o0-AJ for larch@yhetil.org; Sat, 30 Apr 2022 00:01:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkeH6-0005nV-8M for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkeH5-0003nw-Ub for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkeH5-00013m-Kp for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 00:00:03 -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:00:03 +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.16512911933987 (code B ref 45915); Sat, 30 Apr 2022 04:00:03 +0000 Received: (at 45915) by debbugs.gnu.org; 30 Apr 2022 03:59:53 +0000 Received: from localhost ([127.0.0.1]:55717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkeGu-00012E-Nr for submit@debbugs.gnu.org; Fri, 29 Apr 2022 23:59:53 -0400 Received: from mail-pf1-f175.google.com ([209.85.210.175]:37647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkeGr-00011x-OK for 45915@debbugs.gnu.org; Fri, 29 Apr 2022 23:59:50 -0400 Received: by mail-pf1-f175.google.com with SMTP id bo5so8409310pfb.4 for <45915@debbugs.gnu.org>; Fri, 29 Apr 2022 20:59:49 -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=CPqGKpbDYTAfRpNTDAbAbCHvuyHI6q5rNRDX1IdCqXhPfM+ux4OBYORHjDQHlKxMYA swIFfV2zNJADLi5bNlHjZWNxbM6oTrkL7wpLJHFXQqlZbsWoyfhhylrDuG8vuvMMIE2S UDiOJGrZfoL+j4203iQzfbZ5x5ClrBCfeFcEhaHaZZZ5BJfrTXoXuK86yLQp0LzKiQm4 6fn6DCT8f3EJd6+N+Ilr7fl3cFs0Lbpe4/bWbZg87oOSH6r443SokulPliBJTOH3gUC7 LSGQLOY1c2OuSZ0GQpcav6wTXqNR2SkdpE7j71euzfsvGQwX8Ry8Lxek9lQAicRQfwrE ww+g== 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=nvdGehznYKdpTY1h663Gguqfw6uclf/Uypo6wbHHug6k7/iUEKy/OhtkOYOmtTSyXG XN+jmvT+Es3ecGBcc+u6HG0ltYx35Q/oYznLWnjiwvI0X+bEMudUwqOENW4ykqUCHe/M OrlPpMnu5LM2O9FqHZaK671b4mLNstJ5BZ0ycTnBAxL8ujSEy9OfEIhbcBfkNt6q7BoM G1msauX00j6lv154rjYszcnI4QubBb1sxViyzR3lswbfl9w0FoXe31zTMeU4tpDB31ut KRjleLsB/0JvaclRTHWVqwzfrQn0dQFqO6Rjby6s7urvBDuLNyIl/4GyHqXdhDMdcKbM Ep/g== X-Gm-Message-State: AOAM5335tf38Feav8b8ODP+JRMUp+ZgHgZdjYMCujOr6Q8RhaTR2Uf7j bY9XdH3U3HuUsGNmzGejaeA= X-Google-Smtp-Source: ABdhPJxOq8iunSJNtNQbyVfdLk7Z4FbogTsMtok5B8oaaWyFAjQbIfS9tlh/6oUkSXSx2H9DtZHMTA== X-Received: by 2002:a63:9d06:0:b0:3c1:5f7e:8e66 with SMTP id i6-20020a639d06000000b003c15f7e8e66mr1849754pgd.538.1651291183670; Fri, 29 Apr 2022 20:59:43 -0700 (PDT) Received: from localhost ([45.83.130.130]) by smtp.gmail.com with ESMTPSA id c136-20020a63358e000000b003c14af5063bsm7491391pga.83.2022.04.29.20.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 20:59:42 -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:21 +0800 Message-ID: <87k0b7usoa.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=1651291272; 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=h/fWxkiTu1pXB0Q4D/lBmsxVKii0fkyl5yto3I7TEDQDUnecd1iHnVsQG28sN4Femk8V+o HNE91w58bXeWjBRDFZOYcF1+HD5tQpodROEpyMaT4BGG7xqVp2Z3ZiCEeArSQtkffewl7V 5P/q35/jIjnfkx/a2o6493VjGl0VGU8mpprpRHU3xeqAIxsNJEeYw62RfZW8KGSspvlVSC LnKpuYkfZ4nMGTjEjJBh4ZIULkjtpOFKYN8/V17fq63NP2XgTXXT/D00CGrqtvBFhVoZaP V3gjI/hBQlgbeYQ2AbNoSbrkCUpi+1GvG7qOMbAO4s1cDM7oeez3jOzbOB3tLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651291272; a=rsa-sha256; cv=none; b=RgCfMZLDFI2cXTh2vS4vHnl7hVk49u1uKak4eGVpezgwV+IcfWepEr8jqMn4gqOdsTxYj4 9kdZ8SGwYhnhVQ/kJ7MXLu30PccUjTg5J2MoUJkcgbcKaePnAreJ7JmgmQPpcgux1BKRbY ang8EKuRD62hX/J0hdSKMI+fQ3t3b0KhodGDjgX7jK0PB062So6TX//zOGYUxVVK/lqJBf Y3BTGYmbCmweXWvd42AtxMwtsBh11lnjFAw0KOm2SUXwIK95CsynOfg9RQ43S5MweawS6Q Y4B1QTv10u6yFojm+f9RentXa4QgtUSYQKXJk0ws6ypF4cLAshfWy4X33Uty5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CPqGKpbD; 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: 5.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CPqGKpbD; 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: C3F8F11012 X-Spam-Score: 5.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: YcYWi8Bam2N2 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