Use `delete-char' instead of `delete-backward-char'

* org.el (org-self-insert-command): Use `delete-char' instead of
  `delete-backward-char'.
* org-table.el (orgtbl-self-insert-command): Dto.

According to the doc string `delete-backward-char' "is meant for
interactive use only; from Lisp, better use `delete-char' with a
negated argument."
This commit is contained in:
David Maus 2011-06-01 06:53:21 +02:00
parent f4f20ad5c8
commit 00040e708c
2 changed files with 2 additions and 2 deletions

View File

@ -4030,7 +4030,7 @@ overwritten, and the table is not marked as requiring realignment."
(looking-at "[^|\n]* +|"))
(let (org-table-may-need-update)
(goto-char (1- (match-end 0)))
(delete-backward-char 1)
(delete-char -1)
(goto-char (match-beginning 0))
(self-insert-command N))
(setq org-table-may-need-update t)

View File

@ -16921,7 +16921,7 @@ overwritten, and the table is not marked as requiring realignment."
(looking-at "[^|\n]* |"))
(let (org-table-may-need-update)
(goto-char (1- (match-end 0)))
(delete-backward-char 1)
(delete-char -1)
(goto-char (match-beginning 0))
(self-insert-command N)))
(t