[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions badb4e403a 46/66: cleanup on major
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions badb4e403a 46/66: cleanup on major mode changes |
Date: |
Fri, 6 Dec 2024 06:59:56 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit badb4e403a4f153673703ccdc1069018567be147
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
cleanup on major mode changes
solves a fontification problem with darken-foreground method when
switching back and forth between c-mode and c-ts-mode
---
clangd-inactive-regions.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 0826913dd7..b2763b3ac9 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -264,7 +264,8 @@ Useful to update colors after a face or theme change."
(defun clangd-inactive-regions--enable ()
"Helper method to enable inactive regions minor mode."
(add-function :after (default-value 'font-lock-fontify-region-function)
- #'clangd-inactive-regions--fontify))
+ #'clangd-inactive-regions--fontify)
+ (add-hook 'change-major-mode-hook #'clangd-inactive-regions-cleanup))
(defun clangd-inactive-regions--disable ()
"Helper method to enable inactive regions minor mode."
@@ -273,7 +274,8 @@ Useful to update colors after a face or theme change."
(dolist (buf (buffer-list))
(clangd-inactive-regions-cleanup)
(setq clangd-inactive-regions--ranges '())
- (setq clangd-inactive-regions--active nil)))
+ (setq clangd-inactive-regions--active nil))
+ (remove-hook 'change-major-mode-hook #'clangd-inactive-regions-cleanup))
(cl-defmethod eglot-client-capabilities :around (server)
(let ((base (cl-call-next-method)))
- [nongnu] elpa/eglot-inactive-regions 9f439654dc 27/66: Only run our fontification hook if our mode is enabled, (continued)
- [nongnu] elpa/eglot-inactive-regions 9f439654dc 27/66: Only run our fontification hook if our mode is enabled, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 42f37d0970 33/66: update README.md, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5d1580f32b 38/66: fix docs and bump version, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions cd53f3244a 56/66: rename darken-foreground dimmed faces, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 437d09e552 53/66: revert to deprecated eglot functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions bf51947630 55/66: prefer when-let if no else clause is needed, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 193827fdeb 58/66: missing clangd references after rename, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5c20f58422 60/66: clean up after review on emacs-devel, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 80c1b60009 44/66: Revert "revert to deprecated eglot functions", ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 26f3b61b45 51/66: readme update, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions badb4e403a 46/66: cleanup on major mode changes,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions a810593308 59/66: bump version to 0.6, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 7e4eb584e0 61/66: fallback to deprecated functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 6ac373dfd0 62/66: bump version after emacs-devel review, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3569bd5dc7 24/66: Properly enable/clean up state on minor mode toggle, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3b248e0684 37/66: Update install section in README.md, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3ca295f189 45/66: switch to global minor mode, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 15259e94b2 50/66: move to defcustoms for customization, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5b48f4940d 54/66: rename shading method to shading style, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 2d93c0cab0 04/66: forgot some package comment, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3cb6ed0bc4 34/66: update README.md, ELPA Syncer, 2024/12/06