emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] [emacs] 01/01: * lisp/progmodes/python.el (python-mode): A


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] [emacs] 01/01: * lisp/progmodes/python.el (python-mode): Avoid use of set-local to keep Emacs 24.x compatibility.
Date: Sun, 16 Nov 2014 20:59:52 +0000

fgallina pushed a commit to branch master
in repository emacs.

commit c2e145b237b92e37c7ba5b004d5372178da723e8
Author: Fabián Ezequiel Gallina <address@hidden>
Date:   Sun Nov 16 17:59:42 2014 -0300

    * lisp/progmodes/python.el (python-mode): Avoid use of set-local to
    keep Emacs 24.x compatibility.
---
 lisp/ChangeLog           |    5 +++++
 lisp/progmodes/python.el |    5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4873c2..984f4ce 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-16  Fabián Ezequiel Gallina  <address@hidden>
+
+       * progmodes/python.el (python-mode): Avoid use of set-local to
+       keep Emacs 24.x compatibility.
+
 2014-11-16  Lars Magne Ingebrigtsen  <address@hidden>
 
        * net/shr.el (shr): Move to the new defgroup `web'.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d6c4199..3e204a9 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]