GNU bug report logs - #36826
26.1; request: add variable value editing feature to the *Help* buffer

Previous Next

Package: emacs;

Reported by: ndame <emacsuser <at> freemail.hu>

Date: Sun, 28 Jul 2019 06:09:02 UTC

Severity: wishlist

Found in version 26.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 36826 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>,
 Lars Ingebrigtsen <larsi <at> gnus.org>, ndame <emacsuser <at> freemail.hu>,
 36826 <at> debbugs.gnu.org
Subject: Re: bug#36826: 26.1; request: add variable value editing feature to
 the *Help* buffer
Date: Mon, 29 Jul 2019 21:15:18 +0300
> 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.




This bug report was last modified 3 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.