Function: helpful--associated-buffer
helpful--associated-buffer is a byte-compiled function defined in
helpful.el.
Signature
(helpful--associated-buffer BUTTON)
Documentation
Change the associated buffer, so we can see buffer-local values.
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--associated-buffer (button)
"Change the associated buffer, so we can see buffer-local values."
(let ((sym (button-get button 'symbol))
(prompt-p (button-get button 'prompt-p)))
(if prompt-p
(setq helpful--associated-buffer
(helpful--read-live-buffer
"View variable in: "
(lambda (buf-name)
(local-variable-p sym (get-buffer buf-name)))))
(setq helpful--associated-buffer nil)))
(helpful-update))