unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38353: [PATCH] Do not break table.el cells by pressing delete
@ 2019-11-23 22:32 Michal Sojka
  2019-11-30 11:57 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Sojka @ 2019-11-23 22:32 UTC (permalink / raw)
  To: 38353; +Cc: Michal Sojka

When characters are deleted by pressing C-d (delete-char), cell
boundaries are correctly preserved, but when using
<delete> (delete-forward-char), cells are broken because cell
boundaries `|' on the right are shifted one character left. This
commit fixes that.

* lisp/textmodes/table.el (table-command-remap-alist): Add
  entry for delete-forward-char.
---
 lisp/textmodes/table.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index 92aaa46ad6..56a81142ab 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -957,6 +957,7 @@ table-command-remap-alist
     (completion-separator-self-insert-autofilling . *table--cell-self-insert-command)
     (completion-separator-self-insert-command . *table--cell-self-insert-command)
     (delete-char . *table--cell-delete-char)
+    (delete-forward-char . *table--cell-delete-char)
     (delete-backward-char . *table--cell-delete-backward-char)
     (backward-delete-char . *table--cell-delete-backward-char)
     (backward-delete-char-untabify . *table--cell-delete-backward-char)
-- 
2.24.0






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#38353: [PATCH] Do not break table.el cells by pressing delete
  2019-11-23 22:32 bug#38353: [PATCH] Do not break table.el cells by pressing delete Michal Sojka
@ 2019-11-30 11:57 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2019-11-30 11:57 UTC (permalink / raw)
  To: Michal Sojka; +Cc: 38353-done

> From: Michal Sojka <sojkam1@fel.cvut.cz>
> Date: Sat, 23 Nov 2019 23:32:39 +0100
> Cc: Michal Sojka <sojkam1@fel.cvut.cz>
> 
> When characters are deleted by pressing C-d (delete-char), cell
> boundaries are correctly preserved, but when using
> <delete> (delete-forward-char), cells are broken because cell
> boundaries `|' on the right are shifted one character left. This
> commit fixes that.
> 
> * lisp/textmodes/table.el (table-command-remap-alist): Add
>   entry for delete-forward-char.

Thanks, installed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-30 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-23 22:32 bug#38353: [PATCH] Do not break table.el cells by pressing delete Michal Sojka
2019-11-30 11:57 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).