emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/editorconfig 10a77b422f 1/3: Fix compile warning of python


From: ELPA Syncer
Subject: [nongnu] elpa/editorconfig 10a77b422f 1/3: Fix compile warning of python-mode offset (#306)
Date: Fri, 19 May 2023 05:01:21 -0400 (EDT)

branch: elpa/editorconfig
commit 10a77b422f3cdfab01b1b46c097de1575bf7a93b
Author: 10sr <8.slashes@gmail.com>
Commit: GitHub <noreply@github.com>

    Fix compile warning of python-mode offset (#306)
---
 editorconfig.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/editorconfig.el b/editorconfig.el
index d657261945..5006e79285 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -51,8 +51,7 @@
   (defvar tex-indent-basic)
   (defvar tex-indent-item)
   (defvar tex-indent-arg)
-  (defvar evil-shift-width)
-  (defvar python-indent-offset))
+  (defvar evil-shift-width))
 
 (require 'editorconfig-core)
 
@@ -417,7 +416,8 @@ Make a message by passing ARGS to `format-message'."
 
 (defun editorconfig-set-indentation-python-mode (size)
   "Set `python-mode' indent size to SIZE."
-  (setq-local python-indent-offset size)
+  (when (boundp 'python-indent-offset)
+    (setq-local python-indent-offset size))
   ;; For https://launchpad.net/python-mode
   (when (boundp 'py-indent-offset)
     (setq-local py-indent-offset size)))



reply via email to

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