Function: magit--delete-text-properties

magit--delete-text-properties is a byte-compiled function defined in magit-base.el.

Signature

(magit--delete-text-properties STRING &optional PROPS)

Documentation

Delete text properties PROPS from STRING and return it.

If PROPS is nil, remove all properties. To leave STRING unchanged and return a new string, instead use magit--remove-text-properties.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
(defun magit--delete-text-properties (string &optional props)
  "Delete text properties PROPS from STRING and return it.
If PROPS is nil, remove all properties.  To leave STRING unchanged
and return a new string, instead use `magit--remove-text-properties'."
  (set-text-properties 0 (length string) props string)
  string)