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

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

[nongnu] elpa/bison-mode 127958a 07/29: Correct for buffer local variabl


From: ELPA Syncer
Subject: [nongnu] elpa/bison-mode 127958a 07/29: Correct for buffer local variables
Date: Sun, 29 Aug 2021 10:58:41 -0400 (EDT)

branch: elpa/bison-mode
commit 127958acf7d78c6192d69534a67b954c20f8ffe9
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    Correct for buffer local variables
    
    Remove 'make-variable-buffer-local', because its usage is wrong and
    'c-basic-offset' and 'c-offsets-alist' are already buffer-local
    variables. And we should not use 'setq-default' because it effects
    for other buffers.
---
 bison-mode.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bison-mode.el b/bison-mode.el
index 2ecf618..78c5687 100644
--- a/bison-mode.el
+++ b/bison-mode.el
@@ -231,11 +231,9 @@ and \(point\)"
   "Major mode for editing bison/yacc files."
 
   ;; try to set the indentation correctly
-  (setq-default c-basic-offset 4)
-  (make-variable-buffer-local 'c-basic-offset)
+  (setq c-basic-offset 4)
 
   (c-set-offset 'knr-argdecl-intro 0)
-  (make-variable-buffer-local 'c-offsets-alist)
   
   ;; remove auto and hungry anything
   (c-toggle-auto-hungry-state -1)



reply via email to

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