Commit cfc7d5da authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/electric.el (electric-indent-post-self-insert-function): Check that

electric-indent-mode is enabled in current buffer.
parent 5b01685c
2012-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
* electric.el (electric-indent-post-self-insert-function): Check that
electric-indent-mode is enabled in current buffer.
2012-04-19 Juanma Barranquero <lekktu@gmail.com>
* imenu.el (imenu-progress-message): Restore; it is "used" in
......
......@@ -215,6 +215,7 @@ point right after that char, and it should return t to cause indentation,
;; it looks challenging.
(let (pos)
(when (and
electric-indent-mode
;; Don't reindent while inserting spaces at beginning of line.
(or (not (memq last-command-event '(?\s ?\t)))
(save-excursion (skip-chars-backward " \t") (not (bolp))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment