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

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

[elpa] master d3948b0 036/108: Don't execute syntax-ppss if the controll


From: Artur Malabarba
Subject: [elpa] master d3948b0 036/108: Don't execute syntax-ppss if the controlling variable is t.
Date: Wed, 25 Mar 2015 18:38:58 +0000

branch: master
commit d3948b0a59dbf4e5870db870e317af6c06424b53
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    Don't execute syntax-ppss if the controlling variable is t.
---
 aggressive-indent.el |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 2f28fd3..9db8e9c 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -125,7 +125,8 @@ commands will NOT be followed by a re-indent."
 
 (defcustom comments-too nil
   "If non-nil, aggressively indent in comments as well."
-  :type 'boolean)
+  :type 'boolean
+  :package-version '(aggressive-indent . "0.3"))
 
 (defvar -internal-dont-indent-if
   '((memq this-command aggressive-indent-protected-commands)
@@ -133,8 +134,8 @@ commands will NOT be followed by a re-indent."
     buffer-read-only
     (null (buffer-modified-p))
     (string-match "\\`[[:blank:]]*\n?\\'" (thing-at-point 'line))
-    (and (aggressive-indent--in-comment-p)
-         (not aggressive-indent-comments-too)))
+    (and (not aggressive-indent-comments-too)
+         (aggressive-indent--in-comment-p)))
   "List of forms which prevent indentation when they evaluate to non-nil.
 This is for internal use only. For user customization, use
 `aggressive-indent-dont-indent-if' instead.")



reply via email to

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