aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-03-21 00:19:21 -0700
committerGlenn Morris2014-03-21 00:19:21 -0700
commit78540c42f162761bde4322c5d1d89e8dfd455c80 (patch)
tree24c1aa2bd559dac2311c6e1ce94f4c4b2ed2dc8f
parent9ee59bca7ae0ca23a1c7ee3653601b6d8c52b529 (diff)
downloademacs-78540c42f162761bde4322c5d1d89e8dfd455c80.tar.gz
emacs-78540c42f162761bde4322c5d1d89e8dfd455c80.zip
* lisp/electric.el (electric-indent-post-self-insert-function): Add doc.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/electric.el4
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 07af775379c..019c63c5155 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-03-21 Glenn Morris <rgm@gnu.org>
2
3 * electric.el (electric-indent-post-self-insert-function): Add doc.
4
12014-03-21 Dmitry Gutov <dgutov@yandex.ru> 52014-03-21 Dmitry Gutov <dgutov@yandex.ru>
2 6
3 * emacs-lisp/package.el (package-compute-transaction): 7 * 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
228mode set `electric-indent-inhibit', but this can be used as a workaround.") 228mode set `electric-indent-inhibit', but this can be used as a workaround.")
229 229
230(defun electric-indent-post-self-insert-function () 230(defun electric-indent-post-self-insert-function ()
231 "Function that `electric-indent-mode' adds to `post-self-insert-hook'.
232This indents if the hook `electric-indent-functions' returns non-nil,
233or if a member of `electric-indent-chars' was typed; but not in a string
234or comment."
231 ;; FIXME: This reindents the current line, but what we really want instead is 235 ;; FIXME: This reindents the current line, but what we really want instead is
232 ;; to reindent the whole affected text. That's the current line for simple 236 ;; to reindent the whole affected text. That's the current line for simple
233 ;; cases, but not all cases. We do take care of the newline case in an 237 ;; cases, but not all cases. We do take care of the newline case in an