From 823bf6bdb1a525f60f4b64620c36f89df964ff07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sat, 1 Jul 2023 12:27:09 +0200 Subject: [PATCH] * lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug. This is a necessary adjustment to changes to rect.el in Emacs 29. --- lisp/rect.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/rect.el b/lisp/rect.el index 5ff821abb3f..cdfd0764b99 100644 --- a/lisp/rect.el +++ b/lisp/rect.el @@ -940,7 +940,8 @@ Ignores `line-move-visual'." (move-to-column endcol t) (dotimes (_ n) (insert (cadr lines))))) - (region-beginning) (region-end)) + (min (point) (mark)) + (max (point) (mark))) ;; Recompute the rectangle state; no crutches should be needed now. (let ((p (point)) (m (mark))) -- 2.39.2