emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Nick Helm <nick@tenpoint.co.nz>
Cc: emacs-orgmode@gnu.org
Subject: Re: 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	[thread overview]
Message-ID: <87r2wanp67.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2k2273vrj.fsf@tenpoint.co.nz> (Nick Helm's message of "Mon, 14 Aug 2017 11:14:56 +1200")

Hello,

Nick Helm <nick@tenpoint.co.nz> 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

  reply	other threads:[~2017-08-17 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-13 23:14 Bug: Deleting region in table [9.0.8 (9.0.8-dist @ /Users/nick/.emacs.d/lisp/org/)] Nick Helm
2017-08-17 16:18 ` Nicolas Goaziou [this message]
2017-08-28  3:21   ` Nick Helm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2wanp67.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=nick@tenpoint.co.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).