Function: embark-consult--strip
embark-consult--strip is a natively compiled function defined in
embark-consult.el.
Signature
(embark-consult--strip STRING)
Documentation
Strip substrings marked with the consult-strip property from STRING.
Source Code
;; Defined in /nix/store/9j1lpwknj0cd46jf87pww3rp6rcmnk70-emacs-packages-deps/share/emacs/site-lisp/elpa/embark-consult-20260503.118/embark-consult.el
;;; Support for consult-location
(defun embark-consult--strip (string)
"Strip substrings marked with the `consult-strip' property from STRING."
(if (text-property-not-all 0 (length string) 'consult-strip nil string)
(let ((end (length string)) (pos 0) (chunks))
(while (< pos end)
(let ((next (next-single-property-change pos 'consult-strip string end)))
(unless (get-text-property pos 'consult-strip string)
(push (substring string pos next) chunks))
(setq pos next)))
(apply #'concat (nreverse chunks)))
string))