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:
parent
f4f20ad5c8
commit
00040e708c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue