[elpa] master d666642 1/2: [#45] Bump seq dependency to the new version

2016-04-04 Thread Artur Malabarba
branch: master
commit d42d7ad905997d0ac5ecd4b27353506ce79e
Author: Artur Malabarba 
Commit: Artur Malabarba 

[#45] Bump seq dependency to the new version
---
 beacon.el |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/beacon.el b/beacon.el
index a4024a0..6c35e2b 100644
--- a/beacon.el
+++ b/beacon.el
@@ -5,8 +5,8 @@
 ;; Author: Artur Malabarba 
 ;; URL: https://github.com/Malabarba/beacon
 ;; Keywords: convenience
-;; Version: 1.2
-;; Package-Requires: ((seq "1.11"))
+;; Version: 1.2.1
+;; Package-Requires: ((seq "2.14"))
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by



[elpa] master 7a2da55 2/2: Merge commit 'd666642d7ad905997d0ac5ecd4b27353506ce79e'

2016-04-04 Thread Artur Malabarba
branch: master
commit 7a2da55973bd00f7d39c4095f7e6353430e3
Merge: 782ca5e d42
Author: Artur Malabarba 
Commit: Artur Malabarba 

Merge commit 'd42d7ad905997d0ac5ecd4b27353506ce79e'
---
 packages/beacon/beacon.el |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/beacon/beacon.el b/packages/beacon/beacon.el
index a4024a0..6c35e2b 100644
--- a/packages/beacon/beacon.el
+++ b/packages/beacon/beacon.el
@@ -5,8 +5,8 @@
 ;; Author: Artur Malabarba 
 ;; URL: https://github.com/Malabarba/beacon
 ;; Keywords: convenience
-;; Version: 1.2
-;; Package-Requires: ((seq "1.11"))
+;; Version: 1.2.1
+;; Package-Requires: ((seq "2.14"))
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by



[elpa] master updated (7a2da55 -> efb01e6)

2016-04-04 Thread Artur Malabarba
malabarba pushed a change to branch master.

  from  7a2da55   Merge commit 'd42d7ad905997d0ac5ecd4b27353506ce79e'
   new  cbbc361   [Fix #77] Only reindent if parens are balanced
   new  456c408   Version 1.5.2
   new  efb01e6   Merge commit '456c40803432b34842e43ceda66cdd105fbf8866'


Summary of changes:
 packages/aggressive-indent/aggressive-indent.el |   21 ++---
 1 files changed, 18 insertions(+), 3 deletions(-)



[elpa] master 456c408 2/3: Version 1.5.2

2016-04-04 Thread Artur Malabarba
branch: master
commit 456c40803432b34842e43ceda66cdd105fbf8866
Author: Artur Malabarba 
Commit: Artur Malabarba 

Version 1.5.2
---
 aggressive-indent.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 0c61837..9aa8226 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -4,7 +4,7 @@
 
 ;; Author: Artur Malabarba 
 ;; URL: https://github.com/Malabarba/aggressive-indent-mode
-;; Version: 1.5.1
+;; Version: 1.5.2
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 ;; Keywords: indent lisp maint tools
 ;; Prefix: aggressive-indent



[elpa] master cbbc361 1/3: [Fix #77] Only reindent if parens are balanced

2016-04-04 Thread Artur Malabarba
branch: master
commit cbbc361a1c27aa0a05e8868ac91f9986737708b2
Author: Artur Malabarba 
Commit: Artur Malabarba 

[Fix #77] Only reindent if parens are balanced
---
 aggressive-indent.el |   19 +--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 764a332..0c61837 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -368,10 +368,24 @@ or messages."
 (setq aggressive-indent--changed-list
   (cdr aggressive-indent--changed-list))
 
+(defvar-local aggressive-indent--balanced-parens t
+  "Non-nil if the current-buffer has balanced parens.")
+
+(defun aggressive-indent--check-parens ()
+  "Check if parens are balanced in the current buffer.
+Store result in `aggressive-indent--balanced-parens'."
+  (setq aggressive-indent--balanced-parens
+(ignore-errors
+  (save-restriction
+(narrow-to-defun)
+(check-parens)
+t
+
 (defun aggressive-indent--keep-track-of-changes (l r &rest _)
   "Store the limits (L and R) of each change in the buffer."
   (when aggressive-indent-mode
-(push (list l r) aggressive-indent--changed-list)))
+(push (list l r) aggressive-indent--changed-list)
+(aggressive-indent--check-parens)))
 
 ;;; Minor modes
 ;;;###autoload
@@ -393,11 +407,12 @@ or messages."
(memq major-mode '(text-mode fundamental-mode))
buffer-read-only))
   (aggressive-indent-mode -1)
-;; Should electric indent be ON or OFF?
+;; Should electric indent be ON or OFF?
 (if (or (eq aggressive-indent-dont-electric-modes t)
 (cl-member-if #'derived-mode-p 
aggressive-indent-dont-electric-modes))
 (aggressive-indent--local-electric nil)
   (aggressive-indent--local-electric t))
+(aggressive-indent--check-parens)
 (add-hook 'after-change-functions 
#'aggressive-indent--keep-track-of-changes nil 'local)
 (add-hook 'post-command-hook #'aggressive-indent--indent-if-changed 
nil 'local))
 ;; Clean the hooks



[elpa] master efb01e6 3/3: Merge commit '456c40803432b34842e43ceda66cdd105fbf8866'

2016-04-04 Thread Artur Malabarba
branch: master
commit efb01e66f7ea5688ec572d243b5378440093c00f
Merge: 7a2da55 456c408
Author: Artur Malabarba 
Commit: Artur Malabarba 

Merge commit '456c40803432b34842e43ceda66cdd105fbf8866'
---
 packages/aggressive-indent/aggressive-indent.el |   21 ++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/packages/aggressive-indent/aggressive-indent.el 
b/packages/aggressive-indent/aggressive-indent.el
index a744324..a0c8c70 100644
--- a/packages/aggressive-indent/aggressive-indent.el
+++ b/packages/aggressive-indent/aggressive-indent.el
@@ -4,7 +4,7 @@
 
 ;; Author: Artur Malabarba 
 ;; URL: https://github.com/Malabarba/aggressive-indent-mode
-;; Version: 1.5.1
+;; Version: 1.5.2
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 ;; Keywords: indent lisp maint tools
 ;; Prefix: aggressive-indent
@@ -368,10 +368,24 @@ or messages."
 (setq aggressive-indent--changed-list
   (cdr aggressive-indent--changed-list))
 
+(defvar-local aggressive-indent--balanced-parens t
+  "Non-nil if the current-buffer has balanced parens.")
+
+(defun aggressive-indent--check-parens ()
+  "Check if parens are balanced in the current buffer.
+Store result in `aggressive-indent--balanced-parens'."
+  (setq aggressive-indent--balanced-parens
+(ignore-errors
+  (save-restriction
+(narrow-to-defun)
+(check-parens)
+t
+
 (defun aggressive-indent--keep-track-of-changes (l r &rest _)
   "Store the limits (L and R) of each change in the buffer."
   (when aggressive-indent-mode
-(push (list l r) aggressive-indent--changed-list)))
+(push (list l r) aggressive-indent--changed-list)
+(aggressive-indent--check-parens)))
 
 ;;; Minor modes
 ;;;###autoload
@@ -393,11 +407,12 @@ or messages."
(memq major-mode '(text-mode fundamental-mode))
buffer-read-only))
   (aggressive-indent-mode -1)
-;; Should electric indent be ON or OFF?
+;; Should electric indent be ON or OFF?
 (if (or (eq aggressive-indent-dont-electric-modes t)
 (cl-member-if #'derived-mode-p 
aggressive-indent-dont-electric-modes))
 (aggressive-indent--local-electric nil)
   (aggressive-indent--local-electric t))
+(aggressive-indent--check-parens)
 (add-hook 'after-change-functions 
#'aggressive-indent--keep-track-of-changes nil 'local)
 (add-hook 'post-command-hook #'aggressive-indent--indent-if-changed 
nil 'local))
 ;; Clean the hooks



[elpa] master e5e12c2 2/2: Merge commit '67fa7e1a60966e49eccf21b02110af12afa995e0'

2016-04-04 Thread Artur Malabarba
branch: master
commit e5e12c25622872d9fb382cdc11135a90b8e5066b
Merge: efb01e6 67fa7e1
Author: Artur Malabarba 
Commit: Artur Malabarba 

Merge commit '67fa7e1a60966e49eccf21b02110af12afa995e0'
---
 packages/aggressive-indent/aggressive-indent.el |   13 +++--
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/packages/aggressive-indent/aggressive-indent.el 
b/packages/aggressive-indent/aggressive-indent.el
index a0c8c70..006114b 100644
--- a/packages/aggressive-indent/aggressive-indent.el
+++ b/packages/aggressive-indent/aggressive-indent.el
@@ -4,7 +4,7 @@
 
 ;; Author: Artur Malabarba 
 ;; URL: https://github.com/Malabarba/aggressive-indent-mode
-;; Version: 1.5.2
+;; Version: 1.5.3
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 ;; Keywords: indent lisp maint tools
 ;; Prefix: aggressive-indent
@@ -375,11 +375,12 @@ or messages."
   "Check if parens are balanced in the current buffer.
 Store result in `aggressive-indent--balanced-parens'."
   (setq aggressive-indent--balanced-parens
-(ignore-errors
-  (save-restriction
-(narrow-to-defun)
-(check-parens)
-t
+(save-excursion
+  (ignore-errors
+(save-restriction
+  (narrow-to-defun)
+  (check-parens)
+  t)
 
 (defun aggressive-indent--keep-track-of-changes (l r &rest _)
   "Store the limits (L and R) of each change in the buffer."



[elpa] master 67fa7e1 1/2: [Fix #78] save-excursion in check-parens

2016-04-04 Thread Artur Malabarba
branch: master
commit 67fa7e1a60966e49eccf21b02110af12afa995e0
Author: Artur Malabarba 
Commit: Artur Malabarba 

[Fix #78] save-excursion in check-parens
---
 aggressive-indent.el |   13 +++--
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 9aa8226..31cee72 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -4,7 +4,7 @@
 
 ;; Author: Artur Malabarba 
 ;; URL: https://github.com/Malabarba/aggressive-indent-mode
-;; Version: 1.5.2
+;; Version: 1.5.3
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 ;; Keywords: indent lisp maint tools
 ;; Prefix: aggressive-indent
@@ -375,11 +375,12 @@ or messages."
   "Check if parens are balanced in the current buffer.
 Store result in `aggressive-indent--balanced-parens'."
   (setq aggressive-indent--balanced-parens
-(ignore-errors
-  (save-restriction
-(narrow-to-defun)
-(check-parens)
-t
+(save-excursion
+  (ignore-errors
+(save-restriction
+  (narrow-to-defun)
+  (check-parens)
+  t)
 
 (defun aggressive-indent--keep-track-of-changes (l r &rest _)
   "Store the limits (L and R) of each change in the buffer."