projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f94f6d
)
Avoid errors in 'delete-forward-char' deleting static compositions
author
Eli Zaretskii
<eliz@gnu.org>
Fri, 2 Jun 2023 12:42:42 +0000
(15:42 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Fri, 2 Jun 2023 12:42:42 +0000
(15:42 +0300)
* lisp/simple.el (delete-forward-char): Fix recognition of static
compositions. (Bug#63837)
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index 3f88fcb8d03d0595a20bece120f091eee8cff843..9df5958a16863321729f197dac50c24796e10789 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-1520,7
+1520,8
@@
the actual saved text might be different from what was killed."
(let ((from (car cmp))
(to (cadr cmp)))
(cond
- ((= (length cmp) 2) ; static composition
+ ((and (= (length cmp) 3) ; static composition
+ (booleanp (nth 2 cmp)))
to)
;; TO can be at POS, in which case we want
;; to make sure we advance at least by 1