Function: helpful--goto-char-widen

helpful--goto-char-widen is a byte-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 ~/.emacs.d/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))