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 ms5.migadu.com with LMTPS id +OjHH1JUi2J/LQEAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 11:30:58 +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 oEnjHlJUi2IEbQEAG6o9tA (envelope-from ) for ; Mon, 23 May 2022 11:30:58 +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 062A513391 for ; Mon, 23 May 2022 11:30:58 +0200 (CEST) Received: from localhost ([::1]:44234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt4Ov-0001d6-4t for larch@yhetil.org; Mon, 23 May 2022 05:30:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt4L8-0008Tr-CX for emacs-orgmode@gnu.org; Mon, 23 May 2022 05:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt4L8-0005ps-31 for emacs-orgmode@gnu.org; Mon, 23 May 2022 05:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nt4L7-00029W-W8 for emacs-orgmode@gnu.org; Mon, 23 May 2022 05:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#45915: 28.0.90; deletechar distorts org-table Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Mon, 23 May 2022 09:27: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: Ihor Radchenko Cc: tkk@misasa.okayama-u.ac.jp, 45915@debbugs.gnu.org Received: via spool by 45915-submit@debbugs.gnu.org id=B45915.16532979838214 (code B ref 45915); Mon, 23 May 2022 09:27:01 +0000 Received: (at 45915) by debbugs.gnu.org; 23 May 2022 09:26:23 +0000 Received: from localhost ([127.0.0.1]:47303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt4KU-00028Q-Rl for submit@debbugs.gnu.org; Mon, 23 May 2022 05:26:23 -0400 Received: from mail-pg1-f171.google.com ([209.85.215.171]:37677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt4KT-000283-Is for 45915@debbugs.gnu.org; Mon, 23 May 2022 05:26:21 -0400 Received: by mail-pg1-f171.google.com with SMTP id h9so4981296pgl.4 for <45915@debbugs.gnu.org>; Mon, 23 May 2022 02:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=YT4jWyUT4bjXqhmvwvNb3qp/+YOyoUv66tIpCsX1/AI=; b=AKiK8Id23m0x9wXiWLEMsZXseKamvEkeyF0M3bKVjObpkzQvtq06vri4AzSPC6LWZK DOPXfp2/7iXWLS0HiBn7Cq7ME4e+7RKvv6hH+5xdygSTS8JLzv0p7WvcizuArUgRSWVG K1GBCsQYsUsLgi0JYEeYgh9HMr3L+6xaO0lC6U1auRGrvypyMu+nAS4Sa7nQsvDEFhuK VlyXm8N9BiJ70aRc6jl+YsXLu7UdRWIPkBBAa5+Zmof6xX78+et5YF6kvGIVhUsBGP3z cKGVmSnv6jm//LqgPpj5Eu87mEM8YqPMRocNs3ng5RywyZAV7AxMDO0HAZTVTL8ocOFR rXGw== 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:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=YT4jWyUT4bjXqhmvwvNb3qp/+YOyoUv66tIpCsX1/AI=; b=zonJo+AQrP9dqdOlx1oJh3BDnukK5Pi+5yh+VzTlWNeIWyUG3tOot6N7ZRgTcNZ3ck iPAAAHtjLgs146nWSHY2IpSynkjnJabv42Zt4Edy4d5lvaCyRTfY2fhp74LqXH8VRvRu pULTpwR2RUnHZNHDXs3t5JprhjbYH9PWtQWAUckRmeOSdCYZhoHA8lmSP9ZZBbUDW1iT hR/d9MFUWDsdcPuDjbNP9pS+KGTkEk61OuubD5AhqzHZt7wpYeiIVrsNqdu2+4lk4AxM 5O5g42JK+mZOdaBidfbJ3zjnOGbF4k4pXoI6OXJMrORsOhAOXcU/MEFOvJ8ksDB5Wj5Z E2kA== X-Gm-Message-State: AOAM531RNYyKNlZ2gbCblxO6GyIGk2LXnFHUEKMN2bSTuk2546wuaMs4 OROFn2fcARz5B5gycNdEW7Q= X-Google-Smtp-Source: ABdhPJyNMcZPjtwDsXVBQOpznTJC40htUy29bYsE6joNsBiI8NGU9vsErPbV8sUyWXiYiEG4uTLmVQ== X-Received: by 2002:a63:6949:0:b0:3f6:5b37:e949 with SMTP id e70-20020a636949000000b003f65b37e949mr15532168pgc.24.1653297974753; Mon, 23 May 2022 02:26:14 -0700 (PDT) Received: from DreamMini2019.local ([150.46.201.82]) by smtp.gmail.com with ESMTPSA id a23-20020a056a001d1700b0050dc76281ddsm6596478pfx.183.2022.05.23.02.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 02:26:14 -0700 (PDT) From: Tak Kunihiro X-Google-Original-From: Tak Kunihiro 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> <87k0b7usoa.fsf@localhost> Date: Mon, 23 May 2022 18:26:11 +0900 In-Reply-To: <87k0b7usoa.fsf@localhost> (Ihor Radchenko's message of "Sat, 30 Apr 2022 12:00:21 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) 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: , 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=1653298258; 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=YT4jWyUT4bjXqhmvwvNb3qp/+YOyoUv66tIpCsX1/AI=; b=CsApWYCo05hjt5ZkZ8X4w0oFTbA5h+52ovWrgJQcGdYzv2plY4eGECh2DKCg3iuxvfA8Ym 8Y/VqVgJZoF48eSjhB6esu+2lnEqq1YAg5gYNy02PhNW6tmRNiOzGpGQt1JXj532m+S2FI 1QypndPy/yJUozVp3rs7Kl41OVah1DSKWVYLxLFTAmeSaVu+GLPm2+lkF6wGAtglNPCegX VFKx2C5H5HOOGvxLF2xSeG8vEjaVApEhyPSoBP8C/+AzGwSlfIhaqqMX/VqRKU++2bfror n/0FBcLgIB+jRli6zAqWtpuCD27+Zi8qbqtcrksWjBbCUDzDu2wGsTg3o56T7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653298258; a=rsa-sha256; cv=none; b=WlDse5y4A4z2KTLjyTAY7X2szaLXM9lNtbsq4hkampqXWGgkSu1XBjwleiI06JvvIopFfo FoBXZyW4Aai8B9yt02AV4n69HuRX+hokdPuKLF8u7XZT84KQDFWrekwqBhdWeHi9maF2pE hfz9xVvM8VigFDIhIwZWGApY/18MPmS5ieAS83ixktmFEh5GPUlyywIJplxDdvcg8YOM+R kNufiLMAs95KClcXXrSFzyIUOFybFQYw2yF0KkUs5+6tpU4XfzWPThEvqmMGLZNQJLTEY/ ts+ux5LliI5Op4aZ1cxKAVEKC0ufY+S34fQYRW5L3DcD0hh0gkZvSUR70IUJgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=AKiK8Id2; 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.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=AKiK8Id2; 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: 062A513391 X-Spam-Score: 5.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: ntAsizSHUkYC Dear Ihor, > 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)) I still see the problem with GNU Emacs 29.0.50 (build 8, x86_64-apple-darwin21.5.0, NS appkit-2113.50 Version 12.4 (Build 21F79)) of 2022-05-23 with org-version 9.5.3. I create org-tables and revise these everyday. On duplication of a cell, I hit S- often. The problem occurs, with my use case, once in 5 minutes. IOW point moves unexpectedly once in 5 minutes. I think that there is an issue in `org-table-copy-down'. However, I cannot tell what specifically is not good. Is this issue of Emacs instead of Org?