From 05e8b4392be7fb368dcf4e4a19f75f94b323028d Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Thu, 8 Feb 2018 18:46:57 -0800 Subject: [PATCH] Fix iswitchb highlighting: don't mutate buffer name * lisp/obsolete/iswitchb.el (iswitchb-completions): Copy buffer name before applying face --- lisp/obsolete/iswitchb.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/obsolete/iswitchb.el b/lisp/obsolete/iswitchb.el index ec92b96899a..55e81d08d1a 100644 --- a/lisp/obsolete/iswitchb.el +++ b/lisp/obsolete/iswitchb.el @@ -1247,7 +1247,7 @@ Modified from `icomplete-completions'." (if (and iswitchb-use-faces comps) (progn - (setq first (car comps)) + (setq first (copy-sequence (car comps))) (setq first (format "%s" first)) (put-text-property 0 (length first) 'face (if (= (length comps) 1) -- 2.39.2