Function: helpful--sym-value
helpful--sym-value is a natively compiled function defined in
helpful.el.
Signature
(helpful--sym-value SYM BUF)
Documentation
Return the value of SYM in BUF.
Source Code
;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/elpa/helpful-20250408.334/helpful.el
(defun helpful--sym-value (sym buf)
"Return the value of SYM in BUF."
(cond
;; If we're given a buffer, look up the variable in that buffer.
(buf
(with-current-buffer buf
(symbol-value sym)))
;; If we don't have a buffer, and this is a buffer-local variable,
;; ensure we return the default value.
((local-variable-if-set-p sym)
(default-value sym))
;; Otherwise, just return the value in the current buffer, which is
;; the global value.
(t
(symbol-value sym))))