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:
parent
5b01685cc1
commit
cfc7d5da20
@ -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…
Reference in New Issue
Block a user