emacs-diffs
[Top][All Lists]
Advanced

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

master 788694d026: * lisp/minibuffer.el (completion--replace): Fix bug#5


From: Stefan Monnier
Subject: master 788694d026: * lisp/minibuffer.el (completion--replace): Fix bug#55205
Date: Sun, 1 May 2022 13:06:55 -0400 (EDT)

branch: master
commit 788694d026b401715330576633a98542623978ff
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/minibuffer.el (completion--replace): Fix bug#55205
---
 lisp/minibuffer.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index ef71b4e6be..fb473cf71b 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1140,6 +1140,7 @@ Moves point to the end of the new text."
   ;; The properties on `newtext' include things like the
   ;; `completions-first-difference' face, which we don't want to
   ;; include upon insertion.
+  (setq newtext (copy-sequence newtext)) ;Don't modify the arg by side-effect.
   (if minibuffer-allow-text-properties
       ;; If we're preserving properties, then just remove the faces
       ;; and other properties added by the completion machinery.



reply via email to

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