[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: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: Deleting region in table [9.0.8 (9.0.8-dist @ /Users/nick/.emacs.d/lisp/org/)] |
Date: |
Thu, 17 Aug 2017 18:18:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
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.
Regards,
--
Nicolas Goaziou