aboutsummaryrefslogtreecommitdiff
path: root/lisp/git-commit.el
diff options
context:
space:
mode:
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."