branch: elpa/magit
commit 752fce52350c38c9265e5483e7207d718a3645f0
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    Instead of turn-on-* use minor-modes directly
    
    For now only `turn-on-flyspell' is obsolete in Emacs 31.1.
    Get it over with and stop using `turn-on-auto-fill' as well.
---
 lisp/git-commit.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index 5818bfda86..fbd5aa3175 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -660,7 +660,7 @@ the input isn't tacked to the comment."
 (defun git-commit-turn-on-auto-fill ()
   "Unconditionally turn on Auto Fill mode.
 Ensure auto filling happens everywhere, except in the summary line."
-  (turn-on-auto-fill)
+  (auto-fill-mode 1)
   (setq-local comment-auto-fill-only-comments nil)
   (when git-commit-need-summary-line
     (setq-local auto-fill-function #'git-commit-auto-fill-except-summary)))
@@ -685,7 +685,7 @@ Also check text that is already in the buffer, while 
avoiding to check
 most text that Git will strip from the final message, such as the last
 comment and anything below the cut line (\"--- >8 ---\")."
   (require 'flyspell)
-  (turn-on-flyspell)
+  (flyspell-mode 1)
   (setq flyspell-generic-check-word-predicate
         #'git-commit-flyspell-verify)
   (let ((end nil)

Reply via email to