[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 117121cbd6 230/431: Guard update-scope agai
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 117121cbd6 230/431: Guard update-scope against non-mode buffers |
Date: |
Mon, 16 Sep 2024 12:59:31 -0400 (EDT) |
branch: externals/indent-bars
commit 117121cbd62680e5abe5555ec63633e492fb0988
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
Guard update-scope against non-mode buffers
Even a local PCH gets called in other buffers when changing buffers.
Guard against by insisting the current style (a buffer-local) is set.
---
indent-bars-ts.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index 62f0e36060..38b170c81e 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -288,8 +288,9 @@ scope bounds. If it has changed (beyond normal marker
movement),
refontify the symmetric difference between the old and new
ranges (i.e those ranges covered by either old or new, but not
both)."
- (unless (and (= (point) (ibts/point ibtcs))
- (= (buffer-modified-tick) (ibts/tick ibtcs)))
+ (unless (or (not ibtcs) ; can be called in other buffers too
+ (and (= (point) (ibts/point ibtcs))
+ (= (buffer-modified-tick) (ibts/tick ibtcs))))
(when-let ((node (treesit-node-on
(max (point-min) (1- (point))) (point)
indent-bars-ts--parser))
- [elpa] externals/indent-bars 2889b50077 224/431: Always initialize style on scope init, (continued)
- [elpa] externals/indent-bars 2889b50077 224/431: Always initialize style on scope init, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 230e3c8377 221/431: setup-and-remove: wrap in with-selected-frame, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 1b6e353634 225/431: Correctly track separate stipple face for each style, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 9740b6ff4a 227/431: Add min-lines support for scope, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 09dd1d6f75 209/431: Correct after-make-frame handling for daemon, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 226b6c2dd0 226/431: custom-inherit: correctly handle 'unspecified atoms, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars dbbd7fb1ed 218/431: Add (custom-inherit): Improve inheritance for partial plists, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars b8319cf7d4 237/431: add support for json-ts-mode and json-mode, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4ad704782a 233/431: Properly handle SWITCH-AFTER=0, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7acbd9124b 235/431: README: Acknowledgements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 117121cbd6 230/431: Guard update-scope against non-mode buffers,
ELPA Syncer <=
- [elpa] externals/indent-bars cd463afdbc 223/431: Use union of old and new ranges, not symdiff, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 48646b1123 234/431: README: Acknowledgements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2ee5157b41 244/431: Require 'subr-x for hash functions, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars e4d73d35a5 249/431: use indent-bars--tag in create-faces, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 470d99ddd1 262/431: Relocate remap local variables closer to usage, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 3279f93449 220/431: Do no 'reset faces on setup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bf1132775d 217/431: Require cus-edit for custom functionality, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 1bf77531f2 257/431: Better handling of --styles on setup and teardown, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars e4ab2f8865 231/431: Prevent altering the original custom var during inherit, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7d63303e27 275/431: current-indentation-depth: no takes no POS arg, use s-e, ELPA Syncer, 2024/09/16