|
From: | Nicolas Richard |
Subject: | bug#5974: 23.1.95; enabling disabled cmd & saving doesn't respect `custom-file' |
Date: | Thu, 28 Apr 2016 12:41:12 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes: > That's the code that puts > > (put 'narrow-to-region 'disabled nil) > > into our .emacs files, right? Yes, it would be better if that was > handled by Custom. But how? Custom works by setting (variable) values, > not adjusting symbol properties... We could add a defcustom like (defcustom enabled-commands nil "List of commands to enable" :set (lambda (sym val) (dolist (cmd val) (put cmd 'disabled nil)) (set-default sym val))) (code 100% untested) -- Nicolas Richard
[Prev in Thread] | Current Thread | [Next in Thread] |