Function: magit-todos--add-to-custom-type

magit-todos--add-to-custom-type is a natively compiled function defined in magit-todos.el.

Signature

(magit-todos--add-to-custom-type SYMBOL VALUE)

Documentation

Add VALUE to the end of SYMBOL's custom-type property.

Source Code

;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(defun magit-todos--add-to-custom-type (symbol value)
  "Add VALUE to the end of SYMBOL's `custom-type' property."
  (declare (indent defun))
  (pcase-let* ((`(,type . ,choices) (get symbol 'custom-type))
               (choices (append (list value) choices)))
    (put symbol 'custom-type
         (append (list type) choices))))