From 63deba09a33f4d73adc34023bcc179cef7cfcf97 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 8 Jan 2019 16:13:14 +0900 Subject: [PATCH] Fix local variable name --- editorconfig-core.el | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/editorconfig-core.el b/editorconfig-core.el index e7693090..cfc964f7 100644 --- a/editorconfig-core.el +++ b/editorconfig-core.el @@ -171,10 +171,10 @@ hash object instead." result)))) ;; Add indent_size property - (let ((indent-size (gethash 'indent_size result)) - (indent-style (gethash 'indent_style result))) - (when (and (not indent-size) - (string= indent-style "tab") + (let ((v-indent-size (gethash 'indent_size result)) + (v-indent-style (gethash 'indent_style result))) + (when (and (not v-indent-size) + (string= v-indent-style "tab") ;; If VERSION < 0.9.0, indent_size should have no default value (version<= "0.9.0" confversion)) @@ -182,22 +182,22 @@ hash object instead." "tab" result))) ;; Add tab_width property - (let ((indent-size (gethash 'indent_size result)) - (tab-width (gethash 'tab_width result))) - (when (and indent-size - (not tab-width) - (not (string= indent-size "tab"))) + (let ((v-indent-size (gethash 'indent_size result)) + (v-tab-width (gethash 'tab_width result))) + (when (and v-indent-size + (not v-tab-width) + (not (string= v-indent-size "tab"))) (puthash 'tab_width - indent-size + v-indent-size result))) ;; Update indent-size property - (let ((indent-size (gethash 'indent_size result)) - (tab-width (gethash 'tab_width result))) - (when (and indent-size - tab-width - (string= indent-size "tab")) + (let ((v-indent-size (gethash 'indent_size result)) + (v-tab-width (gethash 'tab_width result))) + (when (and v-indent-size + v-tab-width + (string= v-indent-size "tab")) (puthash 'indent_size - tab-width + v-tab-width result))) result))