Function: dabbrev-capf@git-commit

dabbrev-capf@git-commit is a byte-compiled function defined in magit-base.el.

Signature

(dabbrev-capf@git-commit FN)

Documentation

Backport bugfix from debbug#80645 / a7d05207214 / 31.1.

See #5551 and #5556.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
(static-if (version< emacs-version "31.1")
    (define-advice dabbrev-capf (:around (fn) git-commit)
      "Backport bugfix from debbug#80645 / a7d05207214 / 31.1.
See #5551 and #5556."
      (cl-letf (((symbol-function #'user-error)
                 (lambda (format &rest args)
                   (unless (string-prefix-p "No dynamic expansion" format)
                     (signal 'user-error
                             (list (apply #'format-message format args)))))))
        (funcall fn))))