Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
78540c42
Commit
78540c42
authored
Mar 21, 2014
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/electric.el (electric-indent-post-self-insert-function): Add doc.
parent
9ee59bca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/electric.el
lisp/electric.el
+4
-0
No files found.
lisp/ChangeLog
View file @
78540c42
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):
...
...
lisp/electric.el
View file @
78540c42
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment