From 1afea31ac67cef03fe5cf7598b835e0d9abb2870 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Wed, 13 Jun 2018 08:13:34 -0400 Subject: [PATCH] Fix evil-collection-describe-bindings Sort a copy of the stored bindings, because sort can modify the underlying object. --- evil-collection.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evil-collection.el b/evil-collection.el index b4f1bc0..3fc7702 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -295,7 +295,8 @@ modes in the current buffer." ") (cl-loop for (state key def) in - (sort (gethash keymap evil-collection--bindings-record) + (sort (copy-sequence + (gethash keymap evil-collection--bindings-record)) #'evil-collection--binding-lessp) do (when (and def (not (eq def 'ignore)))