From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Helm Subject: Re: Bug: Deleting region in table [9.0.8 (9.0.8-dist @ /Users/nick/.emacs.d/lisp/org/)] Date: Mon, 28 Aug 2017 15:21:41 +1200 Message-ID: References: <87r2wanp67.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmAch-000734-00 for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 23:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmAcd-000263-Re for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 23:21:58 -0400 Received: from mail-me1aus01on0115.outbound.protection.outlook.com ([104.47.116.115]:8833 helo=AUS01-ME1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dmAcd-00023j-42 for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 23:21:55 -0400 In-Reply-To: <87r2wanp67.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 17 Aug 2017 18:18:24 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicholas, I see the fix for this bug (commit 91c68865c644277772028faca96b7ff03541e7cf) was merged for org 9.0.10. However, I installed 9.0.10 this morning and the bug still occurs. Apologies if I am missing something. With thanks, Nick H On Thu, Aug 17 2017, Nicolas Goaziou wrote: > Nick Helm writes: > >> Deleting a region within an org table causes point to jump. >> >> Recipe: >> >> Emacs -Q >> org-mode >> >> ;make a table >> | this is a simple | table | >> >> double-click "simple" ;place region over a word >> >> >> With the last command, I expect the word "simple" to be deleted, the >> right-hand "|" separator (and following column) to close up six chars, >> and point to end up to the right of "a ". >> >> Note however that point winds up in the middle of the next column over >> the word "table". Or, more precisely, one screen column to the left of >> where it started. An additional space is also inserted in the first >> column. >> >> I had a look at org.el and I think this occurs because the function >> `org-delete-backward-char' (which my system calls by default to delete >> text in a table) is unaware of the region and treats the case above as a >> single char backwards delete. > > Good catch! > > Fixed. Thank you for the report and the analysis.