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

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

[elpa] externals/captain 49c3e29 03/11: captain.el: Reverted last commit


From: Stefan Monnier
Subject: [elpa] externals/captain 49c3e29 03/11: captain.el: Reverted last commit
Date: Tue, 1 Dec 2020 15:22:46 -0500 (EST)

branch: externals/captain
commit 49c3e292f9a53b388073946284ac70553dec6bff
Author: Ian Dunn <dunni@gnu.org>
Commit: Ian Dunn <dunni@gnu.org>

    captain.el: Reverted last commit
    
    * captain.el (captain-predicate): Use nil by default, and add documentation
      explaining why.
---
 captain.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/captain.el b/captain.el
index 6cee86c..90cd9ad 100644
--- a/captain.el
+++ b/captain.el
@@ -53,7 +53,7 @@
 (eval-when-compile (require 'subr-x))
 (require 'thingatpt)
 
-(defvar-local captain-predicate (lambda () t)
+(defvar-local captain-predicate nil
   "Predicate to check for whether auto-capitalization should be handled.
 
 Should be a function of no arguments, and return non-nil if
@@ -62,7 +62,9 @@ auto-capitalization should be performed at the current point.
 For example, this could be a function to check if point is in a
 comment.
 
-By default, this is a function that returns t.")
+This is nil by default to avoid automatic capitalization
+happening everywhere, so to start using captain, set it to a
+function of your choosing.")
 
 (defun captain-should-capitalize-p ()
   "Return non-nil if the captain should auto-capitalize your work."



reply via email to

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