]> code.delx.au - gnu-emacs/commitdiff
* lisp/electric.el (electric-indent-post-self-insert-function): Add doc.
authorGlenn Morris <rgm@gnu.org>
Fri, 21 Mar 2014 07:19:21 +0000 (00:19 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 21 Mar 2014 07:19:21 +0000 (00:19 -0700)
lisp/ChangeLog
lisp/electric.el

index 07af775379cb61c21e3b00661e73128c290f51ac..019c63c51554f9830a7ae3ab51b2868035f64f8e 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-21  Glenn Morris  <rgm@gnu.org>
+
+       * electric.el (electric-indent-post-self-insert-function): Add doc.
+
 2014-03-21  Dmitry Gutov  <dgutov@yandex.ru>
 
        * emacs-lisp/package.el (package-compute-transaction):
index 91262a2338151e59d6e028fb8a6b5aa201e75930..52b0595f7d91434fa300fe19b7f89437d5667bc6 100644 (file)
@@ -228,6 +228,10 @@ not try to reindent lines.  It is normally better to make the major
 mode set `electric-indent-inhibit', but this can be used as a workaround.")
 
 (defun electric-indent-post-self-insert-function ()
+  "Function that `electric-indent-mode' adds to `post-self-insert-hook'.
+This indents if the hook `electric-indent-functions' returns non-nil,
+or if a member of `electric-indent-chars' was typed; but not in a string
+or comment."
   ;; FIXME: This reindents the current line, but what we really want instead is
   ;; to reindent the whole affected text.  That's the current line for simple
   ;; cases, but not all cases.  We do take care of the newline case in an