From 8443e1e2302382e209b623a6d5e2e4d9a298c33b Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 18 May 2024 20:47:01 +0200 Subject: [PATCH] Strip 'display' text property from completion candidates This fixes choosing multiline candidates in 'yank-pop'. --- lisp/minibuffer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index ad88822ff16..de690d83804 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -1426,7 +1426,7 @@ Moves point to the end of the new text." ;; `completions-first-difference' face, which we don't want to ;; include upon insertion. (setq newtext (copy-sequence newtext)) - (remove-text-properties 0 (length newtext) '(face) newtext) + (remove-text-properties 0 (length newtext) '(face nil display nil) newtext) ;; Maybe this should be in subr.el. ;; You'd think this is trivial to do, but details matter if you want ;; to keep markers "at the right place" and be robust in the face of -- 2.39.5