Function: consult--buffer-substring

consult--buffer-substring is a byte-compiled function defined in consult.el.

Signature

(consult--buffer-substring BEG END &optional FONTIFY)

Documentation

Return buffer substring between BEG and END.

If FONTIFY and consult-fontify-preserve are non-nil, first ensure that the region has been fontified.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
(defsubst consult--buffer-substring (beg end &optional fontify)
  "Return buffer substring between BEG and END.
If FONTIFY and `consult-fontify-preserve' are non-nil, first ensure that
the region has been fontified."
  (if consult-fontify-preserve
      (let ((str (buffer-substring-no-properties beg end)))
        (when fontify (consult--fontify-region beg end))
        (consult--copy-faces beg end str)
        str)
    (buffer-substring-no-properties beg end)))