1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-16 17:19:41 +00:00

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

electric-indent-mode is enabled in current buffer.
This commit is contained in:
Stefan Monnier 2012-04-19 18:02:25 -04:00
parent 5b01685cc1
commit cfc7d5da20
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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))))