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, #5556 and #5558 (I wish I had not rushed this).
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-base.el
(static-when (version< emacs-version "31.1")
(define-advice dabbrev-capf (:around (fn) git-commit)
"Backport bugfix from debbug#80645 / a7d05207214 / 31.1.
See #5551, #5556 and #5558 (I wish I had not rushed this)."
(pcase-let ((`(,beg ,end ,table . ,rest) (funcall fn)))
`( ,beg ,end
,(lambda (&rest args)
(condition-case err
(apply table args)
(user-error
(unless (string-prefix-p "No dynamic expansion" (cadr err))
(signal (car err) (cdr err))))))
,@rest))))