* lisp/electric.el (electric-indent-post-self-insert-function): Check that
electric-indent-mode is enabled in current buffer.
This commit is contained in:
parent
5b01685cc1
commit
cfc7d5da20
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue