emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 86c50b9: * lisp/progmodes/python.el (python-check-c


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] master 86c50b9: * lisp/progmodes/python.el (python-check-custom-command): Do not use
Date: Sat, 07 Feb 2015 17:25:58 +0000

branch: master
commit 86c50b9af1e68ca87bfc9e6d0cdb28ae2e53cc32
Author: Fabián Ezequiel Gallina <address@hidden>
Commit: Fabián Ezequiel Gallina <address@hidden>

    * lisp/progmodes/python.el (python-check-custom-command): Do not use
    defvar-local for compat with Emacs<24.3.
---
 lisp/ChangeLog           |    5 +++++
 lisp/progmodes/python.el |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a3abb1a..a02f964 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-07  Fabián Ezequiel Gallina  <address@hidden>
+
+       * progmodes/python.el (python-check-custom-command): Do not use
+       defvar-local for compat with Emacs<24.3.
+
 2015-02-07  Martin Rudalics  <address@hidden>
 
        * frame.el (frame-notice-user-settings): Update
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 6551536..de25118 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3849,8 +3849,10 @@ The skeleton will be bound to python-skeleton-NAME."
   :type 'string
   :group 'python)
 
-(defvar-local python-check-custom-command nil
+(defvar python-check-custom-command nil
   "Internal use.")
+;; XXX: Avoid `defvar-local' for compat with Emacs<24.3
+(make-variable-buffer-local 'python-check-custom-command)
 
 (defun python-check (command)
   "Check a Python file (default current buffer's file).



reply via email to

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