diff options
| author | Daniel Colascione | 2018-02-08 18:46:57 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2018-02-08 18:47:06 -0800 |
| commit | 05e8b4392be7fb368dcf4e4a19f75f94b323028d (patch) | |
| tree | 03473957018d780bc856336b0739ae87c2ebaf24 | |
| parent | 6b183f85e02ae1b8527c1bbfa8c5e2c914d28f7c (diff) | |
| download | emacs-05e8b4392be7fb368dcf4e4a19f75f94b323028d.tar.gz emacs-05e8b4392be7fb368dcf4e4a19f75f94b323028d.zip | |
Fix iswitchb highlighting: don't mutate buffer name
* lisp/obsolete/iswitchb.el (iswitchb-completions): Copy buffer name
before applying face
| -rw-r--r-- | lisp/obsolete/iswitchb.el | 2 |
1 files changed, 1 insertions, 1 deletions
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'." | |||
| 1247 | 1247 | ||
| 1248 | (if (and iswitchb-use-faces comps) | 1248 | (if (and iswitchb-use-faces comps) |
| 1249 | (progn | 1249 | (progn |
| 1250 | (setq first (car comps)) | 1250 | (setq first (copy-sequence (car comps))) |
| 1251 | (setq first (format "%s" first)) | 1251 | (setq first (format "%s" first)) |
| 1252 | (put-text-property 0 (length first) 'face | 1252 | (put-text-property 0 (length first) 'face |
| 1253 | (if (= (length comps) 1) | 1253 | (if (= (length comps) 1) |