branch: elpa/magit
commit 4a889060a11d6192e95716c48ee1f72bde36b8b1
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    git-commit-setup-capf: Add dabbrev-capf at end of hook
    
    It is unclear why I decided to do the opposite in [1: 2366db4b].
    `dabbrev-capf' does not opt-in to being non-exclusive, so once it is
    called, subsequent functions are not.  It is unclear why this function
    does not opt-in.  Its also unclear why functions have to explicitly
    declare that they are non-exclusive; requiring functions to declare
    that the are exclusive would seem more natural.
    
    Closes #5655.
    
    1: 2026-03-22 2366db4b3b792fbd191c1d653014bfc6343b270c
       git-commit-setup-capf: New git-commit-setup-hook function
---
 lisp/git-commit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index 1a96293f08..12d9acd6fc 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -629,7 +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))
-  (add-hook 'completion-at-point-functions #'dabbrev-capf -90 t))
+  (add-hook 'completion-at-point-functions #'dabbrev-capf 90 t))
 
 (defun git-commit-setup-changelog-support ()
   "Treat ChangeLog entries as unindented paragraphs."

Reply via email to