[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f316634 098/108: Checkdoc
From: |
Artur Malabarba |
Subject: |
[elpa] master f316634 098/108: Checkdoc |
Date: |
Wed, 25 Mar 2015 18:39:23 +0000 |
branch: master
commit f316634cbe5777c296bbcef829f2bf76a6d3de04
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
Checkdoc
---
aggressive-indent.el | 43 ++++++++++++++++++++++---------------------
1 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/aggressive-indent.el b/aggressive-indent.el
index ee72a17..b33e20f 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -13,12 +13,12 @@
;;; Commentary:
;;
;; `electric-indent-mode' is enough to keep your code nicely aligned when
-;; all you do is type. However, once you start shifting blocks around,
+;; all you do is type. However, once you start shifting blocks around,
;; transposing lines, or slurping and barfing sexps, indentation is bound
;; to go wrong.
;;
;; `aggressive-indent-mode' is a minor mode that keeps your code always
-;; indented. It reindents after every command, making it more reliable
+;; indented. It reindents after every command, making it more reliable
;; than `electric-indent-mode'.
;;
;; ### Instructions ###
@@ -33,7 +33,7 @@
;; (add-hook 'css-mode-hook #'aggressive-indent-mode)
;;
;; You can use this hook on any mode you want, `aggressive-indent' is not
-;; exclusive to emacs-lisp code. In fact, if you want to turn it on for
+;; exclusive to emacs-lisp code. In fact, if you want to turn it on for
;; every programming mode, you can do something like:
;;
;; (global-aggressive-indent-mode 1)
@@ -91,7 +91,7 @@
(require 'names)
(defmacro aggressive-indent--do-softly (&rest body)
- "Execute body unobstrusively.
+ "Execute BODY unobstrusively.
This means:
1. Do nothing in several situations, specified by
`aggressive-indent-dont-indent-if' and
@@ -112,8 +112,8 @@ Meant for use in functions which go in hooks."
(defconst version "0.3.5" "Version of the aggressive-indent.el package.")
(defun bug-report ()
- "Opens github issues page in a web browser. Please send any bugs you find.
-Please include your emacs and aggressive-indent versions."
+ "Opens github issues page in a web browser. Please send any bugs you find.
+Please include your Emacs and aggressive-indent versions."
(interactive)
(message "Your `aggressive-indent-version' is: %s, and your emacs version
is: %s.
Please include this in your report!"
@@ -123,7 +123,7 @@ Please include this in your report!"
;;; Start of actual Code:
(defcustom dont-electric-modes '(ruby-mode)
- "List of major-modes where `electric-indent-mode' should be disabled."
+ "List of major-modes where `electric-indent' should be disabled."
:type '(choice
(const :tag "Never use `electric-indent-mode'." t)
(repeat :tag "List of major-modes to avoid `electric-indent-mode'."
symbol))
@@ -163,7 +163,7 @@ Please include this in your report!"
)
"Modes in which `aggressive-indent-mode' should not be activated.
This variable is only used if `global-aggressive-indent-mode' is
-active. If the minor mode is turned on with the local command,
+active. If the minor mode is turned on with the local command,
`aggressive-indent-mode', this variable is ignored."
:type '(repeat symbol)
:package-version '(aggressive-indent . "0.3.1"))
@@ -194,7 +194,7 @@ commands will NOT be followed by a re-indent."
;; Strings.
(elt sp 3))))
"List of forms which prevent indentation when they evaluate to non-nil.
-This is for internal use only. For user customization, use
+This is for internal use only. For user customization, use
`aggressive-indent-dont-indent-if' instead.")
(defcustom modes-to-prefer-defun
@@ -205,10 +205,10 @@ Add here any major modes with very good definitions of
if you have `after-change-functions' (such as paredit).
If current major mode is derived from one of these,
-`aggressive-indent-mode' will call
-`aggressive-indent-indent-defun' after every command. Otherwise,
-it will call `aggressive-indent-indent-region-and-on' after every
-buffer change."
+`aggressive-indent' will call `aggressive-indent-indent-defun'
+after every command. Otherwise, it will call
+`aggressive-indent-indent-region-and-on' after every buffer
+change."
:type '(repeat symbol)
:package-version '(aggressive-indent . "0.3"))
@@ -230,7 +230,7 @@ buffer change."
(defcustom dont-indent-if '()
"List of variables and functions to prevent aggressive indenting.
-This variable is a list where each element is a lisp form.
+This variable is a list where each element is a Lisp form.
As long as any one of these forms returns non-nil,
aggressive-indent will not perform any indentation.
@@ -318,9 +318,9 @@ until nothing more happens."
(goto-char p))))
(defun -softly-indent-region-and-on (l r &rest _)
- "Indent current defun unobstrusively.
-Like `aggressive-indent-indent-region-and-on', but wrapped in a
-`aggressive-indent--do-softly'."
+ "Indent region between L and R, and a bit more.
+Like `aggressive-indent-indent-region-and-on', but without errors
+or messages."
(unless (or (run-hook-wrapped
'aggressive-indent--internal-dont-indent-if
#'eval)
@@ -345,14 +345,15 @@ Like `aggressive-indent-indent-region-and-on', but
wrapped in a
-changed-list-right nil))))
(defun -keep-track-of-changes (l r &rest _)
- "Store the limits of each change that happens in the buffer."
+ "Store the limits (L and R) of each change in the buffer."
(push l -changed-list-left)
(push r -changed-list-right))
;;; Minor modes
:autoload
-(define-minor-mode mode nil nil " =>"
+(define-minor-mode mode
+ nil nil " =>"
'(("" . aggressive-indent-indent-defun)
([backspace] menu-item "maybe-delete-indentation" ignore
:filter (lambda (&optional _)
@@ -385,7 +386,7 @@ Like `aggressive-indent-indent-region-and-on', but wrapped
in a
(remove-hook 'post-command-hook #'-softly-indent-defun 'local)))
(defun -local-electric (on)
- "Turn `electric-indent-mode' on or off locally, as given by boolean ON."
+ "Turn variable `electric-indent-mode' on or off locally, as per boolean ON."
(if (fboundp 'electric-indent-local-mode)
(electric-indent-local-mode (if on 1 -1))
(set (make-local-variable 'electric-indent-mode) on)))
@@ -400,4 +401,4 @@ Like `aggressive-indent-indent-region-and-on', but wrapped
in a
)
(provide 'aggressive-indent)
-;;; aggressive-indent.el ends here.
+;;; aggressive-indent.el ends here
- [elpa] master a298d3f 092/108: Add cider-repl-mode to excluded modes, (continued)
- [elpa] master a298d3f 092/108: Add cider-repl-mode to excluded modes, Artur Malabarba, 2015/03/25
- [elpa] master d13e986 094/108: Couple more excluded modes, Artur Malabarba, 2015/03/25
- [elpa] master 02da62c 095/108: Update email and GH username., Artur Malabarba, 2015/03/25
- [elpa] master 3a252c8 087/108: Don't activate in text-mode or fundamental-mode, Artur Malabarba, 2015/03/25
- [elpa] master b1c1d20 093/108: Merge branch 'master' of github.com:Bruce-Connor/aggressive-indent-mode, Artur Malabarba, 2015/03/25
- [elpa] master b0026c8 086/108: Stop using electric-indent-inhibit, Artur Malabarba, 2015/03/25
- [elpa] master fae66eb 096/108: Optimize syntax-ppss calls, Artur Malabarba, 2015/03/25
- [elpa] master 05467f2 097/108: Add clojure-mode to modes-to-prefer-defun, Artur Malabarba, 2015/03/25
- [elpa] master e2eb5f5 099/108: Remove unused macro., Artur Malabarba, 2015/03/25
- [elpa] master 2a4b617 100/108: Remove unneeded require., Artur Malabarba, 2015/03/25
- [elpa] master f316634 098/108: Checkdoc,
Artur Malabarba <=
- [elpa] master 72796c6 102/108: Version bump -> 1.0, Artur Malabarba, 2015/03/25
- [elpa] master b1962f1 105/108: Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa, Artur Malabarba, 2015/03/25
- [elpa] master 3852862 106/108: Merge commit 'd8a9a0c201f6abbe22a358cec4793e213bdd3685', Artur Malabarba, 2015/03/25
- [elpa] master d8a9a0c 104/108: Fix the version, Artur Malabarba, 2015/03/25
- [elpa] master e66862f 107/108: Fix typo, Artur Malabarba, 2015/03/25
- [elpa] master 482f49e 103/108: Add 'packages/aggressive-indent/' from commit '72796c652f0eb29902c3d95b7a5411757606b074', Artur Malabarba, 2015/03/25
- [elpa] master 90473ac 108/108: Merge commit 'e66862ffc4a7f729db4fb851652d1c32ce41c1b3', Artur Malabarba, 2015/03/25
- [elpa] master 18c07a9 101/108: More style and doc changes, Artur Malabarba, 2015/03/25