Function: helpful--goto-char-widen

helpful--goto-char-widen is a natively compiled function defined in helpful.el.

Signature

(helpful--goto-char-widen POS)

Documentation

Move point to POS in the current buffer.

If narrowing is in effect, widen if POS isn't in the narrowed area.

Source Code

;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/elpa/helpful-20250408.334/helpful.el
(defun helpful--goto-char-widen (pos)
  "Move point to POS in the current buffer.
If narrowing is in effect, widen if POS isn't in the narrowed area."
  (when (or (< pos (point-min))
            (> pos (point-max)))
    (widen))
  (goto-char pos))