Function: helpful--original-value

helpful--original-value is a natively compiled function defined in helpful.el.

Signature

(helpful--original-value SYM)

Documentation

Return the original value for SYM, if any.

If SYM has an original value, return it in a list. Return nil otherwise.

Source Code

;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/elpa/helpful-20250408.334/helpful.el
(defun helpful--original-value (sym)
  "Return the original value for SYM, if any.

If SYM has an original value, return it in a list. Return nil
otherwise."
  (let* ((orig-val-expr (get sym 'standard-value)))
    (when (consp orig-val-expr)
      (ignore-errors
        (list
         (eval (car orig-val-expr)))))))