2008-05-28 Daiki Ueno <ueno@unixuser.org>
+ * riece.el (riece-save-variables-files): Generate
+ custom-set-variables instead of a list of setq.
+
* riece-options.el (riece-server-alist): Simplify custom-type.
* riece-coding.el: Move defcustom to riece-options; require
'riece-options.
print-level
print-length
(variables riece-saved-forms))
+ (insert "(custom-set-variables\n")
(while variables
- (prin1 `(setq ,(car variables)
- ',(symbol-value (car variables)))
+ (insert " '")
+ (prin1 `(,(car variables) ,(symbol-value (car variables)))
(current-buffer))
(insert "\n")
- (setq variables (cdr variables)))))
+ (setq variables (cdr variables)))
+ (insert ")")))
(message (riece-mcat "Saving %s...done") riece-saved-variables-file)
(setq riece-save-variables-are-dirty nil))