Merge pull request #46 from tkf/fix-dump-list-take-2

Fix mc/dump-list (take 2): it looses old setting
This commit is contained in:
Magnar Sveen 2012-12-01 22:34:14 -08:00
commit f1a5a39b48

View File

@ -505,7 +505,7 @@ for running commands with multiple cursors.")
(defun mc/dump-list (list-symbol) (defun mc/dump-list (list-symbol)
"Insert (setq 'LIST-SYMBOL LIST-VALUE) to current buffer." "Insert (setq 'LIST-SYMBOL LIST-VALUE) to current buffer."
(let ((value (symbol-value list-symbol))) (symbol-macrolet ((value (symbol-value list-symbol)))
(insert "(setq " (symbol-name list-symbol) "\n" (insert "(setq " (symbol-name list-symbol) "\n"
" '(") " '(")
(newline-and-indent) (newline-and-indent)