From: Fabián Ezequiel Gallina Date: Sun, 16 Nov 2014 20:59:42 +0000 (-0300) Subject: * lisp/progmodes/python.el (python-mode): Avoid use of set-local to X-Git-Tag: emacs-25.0.90~2635^2~447 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c2e145b237b92e37c7ba5b004d5372178da723e8;p=emacs.git * lisp/progmodes/python.el (python-mode): Avoid use of set-local to keep Emacs 24.x compatibility. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c4873c2081b..984f4ce2cd7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-11-16 Fabián Ezequiel Gallina + + * progmodes/python.el (python-mode): Avoid use of set-local to + keep Emacs 24.x compatibility. + 2014-11-16 Lars Magne Ingebrigtsen * net/shr.el (shr): Move to the new defgroup `web'. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d6c4199cc94..3e204a92cd3 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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