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

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

[elpa] externals/auto-correct 80fe805 03/11: auto-correct.el: Changed de


From: Stefan Monnier
Subject: [elpa] externals/auto-correct 80fe805 03/11: auto-correct.el: Changed default predicate to enable auto-correct
Date: Tue, 1 Dec 2020 15:17:28 -0500 (EST)

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

    auto-correct.el: Changed default predicate to enable auto-correct
---
 auto-correct.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/auto-correct.el b/auto-correct.el
index 0ce103c..516d5e7 100644
--- a/auto-correct.el
+++ b/auto-correct.el
@@ -5,7 +5,7 @@
 ;; Author: Ian Dunn <dunni@gnu.org>
 ;; Maintainer: Ian Dunn <dunni@gnu.org>
 ;; Keywords: editing
-;; Version: 1.0
+;; Version: 1.1
 
 ;; This file is part of GNU Emacs.
 
@@ -75,11 +75,13 @@
 
 ;; Core Functionality
 
-(defvar-local auto-correct-predicate nil
+(defvar-local auto-correct-predicate (lambda () t)
   "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.")
+auto-correct should operate on the current text.
+
+By default, this is a function that returns t.")
 
 (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]