Function: helpful--chars-after

helpful--chars-after is a byte-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 ~/.emacs.d/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))))