Skip to content

Commit

Permalink
fix: Improve variable setting logic in helpful.el
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonBreezes authored and Wilfred committed Feb 20, 2025
1 parent 34328c6 commit 5ad8a9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpful.el
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ overrides that to include previously opened buffers."
(let* ((sym (button-get button 'symbol))
(buf (button-get button 'buffer))
(sym-value (helpful--sym-value sym buf))
(set-func (symbol-name helpful-set-variable-function))
(set-func (if (local-variable-p sym buf)
"setq"
(symbol-name helpful-set-variable-function)))
;; Inspired by `counsel-read-setq-expression'.
(expr
(minibuffer-with-setup-hook
Expand Down

0 comments on commit 5ad8a9c

Please sign in to comment.