[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 r116821: * lisp/electric.el (electric-indent-post
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] emacs-24 r116821: * lisp/electric.el (electric-indent-post-self-insert-function): Add doc. |
Date: |
Fri, 21 Mar 2014 07:19:27 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116821
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: emacs-24
timestamp: Fri 2014-03-21 00:19:21 -0700
message:
* lisp/electric.el (electric-indent-post-self-insert-function): Add doc.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/electric.el electric.el-20091113204419-o5vbwnq5f7feedwu-47
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-03-21 06:06:52 +0000
+++ b/lisp/ChangeLog 2014-03-21 07:19:21 +0000
@@ -1,3 +1,7 @@
+2014-03-21 Glenn Morris <address@hidden>
+
+ * electric.el (electric-indent-post-self-insert-function): Add doc.
+
2014-03-21 Dmitry Gutov <address@hidden>
* emacs-lisp/package.el (package-compute-transaction):
=== modified file 'lisp/electric.el'
--- a/lisp/electric.el 2014-03-20 22:00:20 +0000
+++ b/lisp/electric.el 2014-03-21 07:19:21 +0000
@@ -228,6 +228,10 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 r116821: * lisp/electric.el (electric-indent-post-self-insert-function): Add doc.,
Glenn Morris <=