[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master bae7ae0 2/2: auto-correct.el: Changed default predicate to
From: |
Ian Dunn |
Subject: |
[elpa] master bae7ae0 2/2: auto-correct.el: Changed default predicate to enable auto-correct |
Date: |
Tue, 5 Sep 2017 20:21:42 -0400 (EDT) |
branch: master
commit bae7ae0d162dde3cb4aa63f8d72b2558f3ff57db
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
auto-correct.el: Changed default predicate to enable auto-correct
---
packages/auto-correct/auto-correct.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/packages/auto-correct/auto-correct.el
b/packages/auto-correct/auto-correct.el
index 0ce103c..516d5e7 100644
--- a/packages/auto-correct/auto-correct.el
+++ b/packages/auto-correct/auto-correct.el
@@ -5,7 +5,7 @@
;; Author: Ian Dunn <address@hidden>
;; Maintainer: Ian Dunn <address@hidden>
;; 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.