|
From: | Robert Weiner |
Subject: | Re: custom-set-variables considered harmful |
Date: | Mon, 4 Dec 2017 11:05:32 -0500 |
Any objection to installing the patch below into `master`?
Stefan
+(defcustom custom-mimic-plain-elisp nil
+ "If non-nil, save user settings with the new format.
+This new format tries to mimick the code that would be written by hand
+in plain Elisp. But it relies on `custom-autogenerated-user-settings' which +is a new macro in Emacs-27, so settings saved with this will not work
+reliably in Emacs<27 (although a backward compatibility trick is used
+which should make them work to some extent)."
+ :type 'boolean
+ :group 'customize)
+
+(defcustom custom-mimic-plain-elisp-use-setq nil
+"If non-nil, use `setq' when possible in generated code.
+If nil, `custom-mimic-plain-elisp' will only use `customize-set-variable',
+which is the more reliable option."
+(defun custom--mimic-plain-elisp (symbol exp requests comment)
[Prev in Thread] | Current Thread | [Next in Thread] |