]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/python.el (python-mode): Avoid use of set-local to
authorFabián Ezequiel Gallina <galli.87@gmail.com>
Sun, 16 Nov 2014 20:59:42 +0000 (17:59 -0300)
committerFabián Ezequiel Gallina <galli.87@gmail.com>
Sun, 16 Nov 2014 20:59:42 +0000 (17:59 -0300)
keep Emacs 24.x compatibility.

lisp/ChangeLog
lisp/progmodes/python.el

index c4873c2081b15097c64aad419ae09a06b9d5aa29..984f4ce2cd754f709a6de4cb378a856d9b3d5327 100644 (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'.
index d6c4199cc945ac4b26be9953d4dbf3e695a6d540..3e204a92cd37faafeac0e931ea52bb3b6de43bec 100644 (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