[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7762250 032/108: Don't indent on empty line.
From: |
Artur Malabarba |
Subject: |
[elpa] master 7762250 032/108: Don't indent on empty line. |
Date: |
Wed, 25 Mar 2015 18:38:56 +0000 |
branch: master
commit 7762250551e9409b5f431d46c66c85957d71dffc
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
Don't indent on empty line.
---
aggressive-indent.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/aggressive-indent.el b/aggressive-indent.el
index 32dfa8e..af6d2ac 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -127,7 +127,8 @@ commands will NOT be followed by a re-indent."
'((memq this-command aggressive-indent-protected-commands)
(region-active-p)
buffer-read-only
- (null (buffer-modified-p)))
+ (null (buffer-modified-p))
+ (string-match "\\`[[:blank:]]*\n?\\'" (thing-at-point 'line)))
"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.")
- [elpa] master 1c74518 023/108: Fix last-command -> this-command bug, (continued)
- [elpa] master 1c74518 023/108: Fix last-command -> this-command bug, Artur Malabarba, 2015/03/25
- [elpa] master ebcafdb 022/108: Version Bump, Artur Malabarba, 2015/03/25
- [elpa] master a07019e 021/108: Move up the screencast, Artur Malabarba, 2015/03/25
- [elpa] master 8af72c5 024/108: Factor out the soft part into a macro., Artur Malabarba, 2015/03/25
- [elpa] master 7c3cb86 017/108: Add demo screenshot, Artur Malabarba, 2015/03/25
- [elpa] master 6a4296b 028/108: Add demo for non-Lisp mode, Artur Malabarba, 2015/03/25
- [elpa] master 215ddf7 030/108: Don't use do-softly for now., Artur Malabarba, 2015/03/25
- [elpa] master 81fadf1 029/108: Add modes to prefer defun., Artur Malabarba, 2015/03/25
- [elpa] master e4d3601 026/108: Implement a smarter engine for non-lisp modes., Artur Malabarba, 2015/03/25
- [elpa] master e774765 031/108: Merge branch 'region-indent', Artur Malabarba, 2015/03/25
- [elpa] master 7762250 032/108: Don't indent on empty line.,
Artur Malabarba <=
- [elpa] master 6e1d5a1 027/108: Merge pull request #12 from Bruce-Connor/region-indent, Artur Malabarba, 2015/03/25
- [elpa] master c15c56d 033/108: Skip empty lines when indenting blocks, Artur Malabarba, 2015/03/25
- [elpa] master 82c5d78 034/108: Merge pull request #17 from pmachata/master, Artur Malabarba, 2015/03/25
- [elpa] master b4b8dc3 037/108: Merge branch 'master' of github.com:Bruce-Connor/aggressive-indent-mode, Artur Malabarba, 2015/03/25
- [elpa] master 820db3c 035/108: Don't indent inside comments, but allow as an option., Artur Malabarba, 2015/03/25
- [elpa] master 201ec03 025/108: Indent changed region instead of defun for modes which aren't emacs-lisp., Artur Malabarba, 2015/03/25
- [elpa] master c4957eb 041/108: Fix bug on buffers with no final newline., Artur Malabarba, 2015/03/25
- [elpa] master d3948b0 036/108: Don't execute syntax-ppss if the controlling variable is t., Artur Malabarba, 2015/03/25
- [elpa] master c35bc62 039/108: Skip indenting lines only barely touched by changed region., Artur Malabarba, 2015/03/25
- [elpa] master 130b938 040/108: Redundant group specification., Artur Malabarba, 2015/03/25