Function: helpful--chars-after

helpful--chars-after is a natively compiled function defined in helpful.el.

Signature

(helpful--chars-after POS N)

Documentation

Return up to N chars after POS in the current buffer.

The string may be shorter than N or empty if out-of-range.

Source Code

;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/elpa/helpful-20250408.334/helpful.el
(defun helpful--chars-after (pos n)
  "Return up to N chars after POS in the current buffer.
The string may be shorter than N or empty if out-of-range."
  (buffer-substring
   pos
   (min (point-max) (+ pos n))))