* lisp/progmodes/python.el (python-mode): Avoid use of set-local to

keep Emacs 24.x compatibility.
This commit is contained in:
Fabián Ezequiel Gallina 2014-11-16 17:59:42 -03:00
parent cbd90e1d30
commit c2e145b237
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-mode): Avoid use of set-local to
keep Emacs 24.x compatibility.
2014-11-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr): Move to the new defgroup `web'.

View file

@ -4301,8 +4301,9 @@ Arguments START and END narrow the buffer region to work on."
#'python-indent-line-function)
(set (make-local-variable 'indent-region-function) #'python-indent-region)
;; Because indentation is not redundant, we cannot safely reindent code.
(setq-local electric-indent-inhibit t)
(setq-local electric-indent-chars (cons ?: electric-indent-chars))
(set (make-local-variable 'electric-indent-inhibit) t)
(set (make-local-variable 'electric-indent-chars)
(cons ?: electric-indent-chars))
;; Add """ ... """ pairing to electric-pair-mode.
(add-hook 'post-self-insert-hook