Function: dired-narrow--remove-text-with-property
dired-narrow--remove-text-with-property is a natively compiled
function defined in dired-narrow.el.
Signature
(dired-narrow--remove-text-with-property PROP)
Documentation
Delete all text in the current buffer with text property PROP.
Source Code
;; Defined in /nix/store/xm3gi4y4qlmhgrb87qrgpns677w7ls45-emacs-packages-deps/share/emacs/site-lisp/elpa/dired-narrow-20250511.2303/dired-narrow.el
;; Utils
;; this is `gnus-remove-text-with-property'
(defun dired-narrow--remove-text-with-property (prop)
"Delete all text in the current buffer with text property PROP."
(let ((start (point-min))
end)
(unless (get-text-property start prop)
(setq start (next-single-property-change start prop)))
(while start
(setq end (text-property-any start (point-max) prop nil))
(delete-region start (or end (point-max)))
(setq start (when end
(next-single-property-change start prop))))))