branch: elpa/multiple-cursors commit f4d5aea860cffa5f3d083a16a95c07356da96d15 Author: Takafumi Arakaki <aka....@gmail.com> Commit: Takafumi Arakaki <aka....@gmail.com>
Sort before saving list in mc/save-lists --- multiple-cursors-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el index 132c415..387f7ea 100644 --- a/multiple-cursors-core.el +++ b/multiple-cursors-core.el @@ -486,7 +486,8 @@ for running commands with multiple cursors.") " '(") (newline-and-indent) (mapc #'(lambda (cmd) (insert (format "%S" cmd)) (newline-and-indent)) - value) + (sort value (lambda (x y) (string-lessp (symbol-name x) + (symbol-name y))))) (insert "))") (newline)))