]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow editing all symbols in help-fns--editable-variable
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 Jun 2022 14:30:16 +0000 (16:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 Jun 2022 14:30:16 +0000 (16:30 +0200)
* lisp/help-fns.el (help-fns--editable-variable): Allow editing
all symbols (bug#56038).

lisp/help-fns.el

index 61fc8037dfa7dcb0f451fdfd22f76a6c224d8352..ca5750723f37029196c3642895c8497fd3546602 100644 (file)
@@ -1352,9 +1352,6 @@ it is displayed along with the global value."
 
 (defun help-fns--editable-variable (start end variable value buffer)
   (when (and (readablep value)
-             (or (not (symbolp value))
-                 (and (not (and (symbolp value) (boundp value)))
-                      (not (and (symbolp value) (fboundp value)))))
              help-enable-variable-value-editing)
     (add-text-properties
      start end
@@ -1362,6 +1359,7 @@ it is displayed along with the global value."
            'help-fns--edit-variable (list variable value buffer
                                           (current-buffer))
            'keymap (define-keymap
+                     :parent button-map
                      "e" #'help-fns-edit-variable)))))
 
 (defvar help-fns--edit-variable)