[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode c833b77 094/495: Fix cache invalidation for dangli
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode c833b77 094/495: Fix cache invalidation for dangling operator cache |
Date: |
Sat, 7 Aug 2021 09:04:50 -0400 (EDT) |
branch: elpa/go-mode
commit c833b77fbb85ae4a2fe8b5e623c5fcb29a1e8c2b
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
Fix cache invalidation for dangling operator cache
We made two mistakes here:
1) we didn't add the hook correctly, which caused it to be lost when
syntax-ppss installed its hook
2) we didn't correctly create a new hash and instead set it back to itself
---
go-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 3d2ea7b..4a5935e 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -316,8 +316,8 @@ recommended that you look at goflymake
(if (boundp 'syntax-propertize-function)
(set (make-local-variable 'syntax-propertize-function)
'go-propertize-syntax))
- (set (make-local-variable 'go-dangling-cache) #s(hash-table test eql))
- (add-to-list 'before-change-functions (lambda (x y) (setq go-dangling-cache
#s(hash-table test eql))))
+ (set (make-local-variable 'go-dangling-cache) (make-hash-table :test 'eql))
+ (add-hook 'before-change-functions (lambda (x y) (setq go-dangling-cache
(make-hash-table :test 'eql))) t t)
(setq imenu-generic-expression
- [nongnu] elpa/go-mode 399393a 057/495: remove dead code, (continued)
- [nongnu] elpa/go-mode 399393a 057/495: remove dead code, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode ee10287 059/495: Revert "Fix indentation for code after multi-line function signature", ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 79d5860 073/495: improve fontification, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 49b9355 074/495: do not change indentation if in multiline string, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 522543f 077/495: replace several defuns with macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4aeb058 078/495: add cache to go-previous-line-has-dangling-op-p, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 438f671 082/495: update documentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c2366b2 084/495: formatting, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode fb9ab02 087/495: buffer-file-truename is an *abbreviated* truename, so use file-truename instead., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 745c437 092/495: style fixes, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c833b77 094/495: Fix cache invalidation for dangling operator cache,
ELPA Syncer <=
- [nongnu] elpa/go-mode 87c8b6e 096/495: do not use dangling op cache when buffer is narrowed, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8e19ae5 097/495: add some documentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode b5960fe 099/495: nicer messages in gofmt, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 939d630 100/495: style fixes, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 47b3928 102/495: disable read-only on error buffer before trying to write to it, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c94ca2e 064/495: refactor, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 6b77ff1 065/495: allow disabling fontification for function/method calls, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 02d44df 067/495: add function for downloading playgrounds into emacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode ec6fef4 066/495: Define a customization group for go-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 856eff3 105/495: Instead of relying on gofmt's -d flag, use diff -n directly. This, ELPA Syncer, 2021/08/07