branch: master commit d3948b0a59dbf4e5870db870e317af6c06424b53 Author: Artur Malabarba <bruce.connor...@gmail.com> Commit: Artur Malabarba <bruce.connor...@gmail.com>
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.")