From: Glenn Morris Date: Fri, 21 Mar 2014 07:19:21 +0000 (-0700) Subject: * lisp/electric.el (electric-indent-post-self-insert-function): Add doc. X-Git-Tag: emacs-24.3.90~129 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=78540c42f162761bde4322c5d1d89e8dfd455c80;p=emacs.git * lisp/electric.el (electric-indent-post-self-insert-function): Add doc. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 07af775379c..019c63c5155 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2014-03-21 Glenn Morris + + * electric.el (electric-indent-post-self-insert-function): Add doc. + 2014-03-21 Dmitry Gutov * emacs-lisp/package.el (package-compute-transaction): diff --git a/lisp/electric.el b/lisp/electric.el index 91262a23381..52b0595f7d9 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -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