aboutsummaryrefslogtreecommitdiff
path: root/lisp/git-commit.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2026-04-11 14:36:08 +0200
committerJonas Bernoulli <jonas@bernoul.li>2026-04-11 14:36:08 +0200
commitb400caeb52fe67419d29713a0f16c8118a56f303 (patch)
treeda96f660ed0b46710b2147623ee82fdaf1f31bce /lisp/git-commit.el
parent098e6a02f18d0bee27eab0ad9e3c18a49b18d63d (diff)
Backport dabbrev-capf bugfix permanently
Closes #5556.
Diffstat (limited to 'lisp/git-commit.el')
-rw-r--r--lisp/git-commit.el9
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index be11380..9535c63 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -629,14 +629,7 @@ completing modified symbols and other text appearing in the diff."
(unless dabbrev--abbrev-char-regexp
;; Initialize (not "reset") variables. See #5545.
(dabbrev--reset-global-variables))
- ;; Our wrapper backports bugfix from debbug#80645 / a7d05207214. See #5551.
- (add-hook 'completion-at-point-functions #'git-commit--dabbrev-capf -90 t))
-
-(defun git-commit--dabbrev-capf ()
- (static-if (magit--version>= emacs-version "31.1")
- (dabbrev-capf)
- (cl-letf (((symbol-function #'user-error) (lambda (&rest _))))
- (dabbrev-capf))))
+ (add-hook 'completion-at-point-functions #'dabbrev-capf -90 t))
(defun git-commit-setup-changelog-support ()
"Treat ChangeLog entries as unindented paragraphs."