bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45915: 28.2; delete-char deletes two letters


From: Tak Kunihiro
Subject: bug#45915: 28.2; delete-char deletes two letters
Date: Sat, 17 Sep 2022 12:48:56 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)

I see a light.
With the following patch, <delete> deletes only a letter.

The (org-table-align) inserts string with text properties.
It seems that the text properties matter.

However, I do not understand what's going on there. Can you take a look
(org-table-align) with this hint and revise it in correct way?

diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
index 9b692d09736..55bc2838718 100644
--- a/lisp/org/org-table.el
+++ b/lisp/org/org-table.el
@@ -4410,6 +4410,7 @@ org-table-align
                                                     alignments)
                                          "|")))
                           "|")))
+              (setq new (substring-no-properties new))
              (if (equal new previous)
                  (forward-line)
                (insert new "\n")





reply via email to

[Prev in Thread] Current Thread [Next in Thread]