[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Deleting region in table [9.0.8 (9.0.8-dist @ /Users/nick/.
From: |
Nick Helm |
Subject: |
Re: [O] 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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) |
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 <address@hidden> 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
>> <backspace>
>>
>> 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.