|
From: | Juri Linkov |
Subject: | bug#36826: 26.1; request: add variable value editing feature to the *Help* buffer |
Date: | Mon, 29 Jul 2019 21:15:18 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> I mentioned `set-variable'. But it is only for user options. I use such advice to workaround this restriction: ;; Allow set-variable to set all variables, not only customizable ones: (advice-add 'set-variable :around (lambda (orig-fun &rest args) (interactive (lambda (spec) (cl-letf (((symbol-function 'custom-variable-p) (lambda (v) (and (symbolp v) (boundp v))))) (advice-eval-interactive-spec spec)))) (cl-flet ((custom-variable-p (v) t)) (apply orig-fun args))) '((name . override-custom-variable))) But I agree with Michael this should be allowed only to developers.
[Prev in Thread] | Current Thread | [Next in Thread] |