emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auto-correct 27a2323 04/11: auto-correct.el: Reverted l


From: Stefan Monnier
Subject: [elpa] externals/auto-correct 27a2323 04/11: auto-correct.el: Reverted last commit
Date: Tue, 1 Dec 2020 15:17:28 -0500 (EST)

branch: externals/auto-correct
commit 27a2323fd045fc85495a71aad3fb1d64e9d951f5
Author: Ian Dunn <dunni@gnu.org>
Commit: Ian Dunn <dunni@gnu.org>

    auto-correct.el: Reverted last commit
    
    * auto-correct.el (auto-correct-predicate): Use nil by default because it's 
more
      convenient to explicitly enable auto-correct rather than disable it
      everywhere.
---
 auto-correct.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/auto-correct.el b/auto-correct.el
index 516d5e7..73b41a4 100644
--- a/auto-correct.el
+++ b/auto-correct.el
@@ -75,13 +75,13 @@
 
 ;; Core Functionality
 
-(defvar-local auto-correct-predicate (lambda () t)
+(defvar-local auto-correct-predicate nil
   "Predicate to check whether automatic corrections should be made.
 
 This should be a function of no arguments that returns non-nil if
 auto-correct should operate on the current text.
 
-By default, this is a function that returns t.")
+This is nil by default so auto-correct must be explicitly enabled.")
 
 (defun auto-correct-expand-p ()
   "Return non-nil if auto-correct should operate on the current point.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]