From fa753aa587afc2bb7198d9ec03fcc42a550b2162 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sat, 24 Nov 2012 23:27:46 +0100 Subject: [PATCH] Fix: mc/dump-list loosing old setting --- multiple-cursors-core.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el index 98114e4..44c2c80 100644 --- a/multiple-cursors-core.el +++ b/multiple-cursors-core.el @@ -513,9 +513,11 @@ for running commands with multiple cursors.") (insert "(setq " (symbol-name list-symbol) "\n" " '(") (newline-and-indent) + (set list-symbol + (sort value (lambda (x y) (string-lessp (symbol-name x) + (symbol-name y))))) (mapc #'(lambda (cmd) (insert (format "%S" cmd)) (newline-and-indent)) - (sort value (lambda (x y) (string-lessp (symbol-name x) - (symbol-name y))))) + value) (insert "))") (newline)))