[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)
- [nongnu] branch elpa/bison-mode created (now 4f2e203), ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode a167ea5 10/29: Fix calling function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 100bf09 01/29: Initial commit, just the README., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode dc479cf 11/29: Merge pull request #1 from syohex/fix-various-things, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode dba3c1e 12/29: Fixing another byte-compiler warning., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 20b0c65 14/29: Removing some unused, un-namespaced utility functinos., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 127958a 07/29: Correct for buffer local variables,
ELPA Syncer <=
- [nongnu] elpa/bison-mode 64f66bb 09/29: Add autoload cookie for lazy loading, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 64b70af 21/29: Adding support for jison files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode bb48d82 23/29: Merge pull request #6 from petermoresi/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode a283296 22/29: Adding comment for autoload .jison files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 675df47 25/29: flex-mode variant, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 0de3ce2 15/29: Removing some commented-out debugging code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 0434673 04/29: Removing dependency on flex-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 25d6d91 06/29: More checkdoc fixes., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 3a7fd59 08/29: Fix byte-compile warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 9dcb46e 02/29: Checking in the current state of bison-mode., ELPA Syncer, 2021/08/29