[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/symbol-overlay 4f60487e45 124/152: Add new variable symbol
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/symbol-overlay 4f60487e45 124/152: Add new variable symbol-overlay-inhibit-map |
Date: |
Thu, 7 Jul 2022 12:04:21 -0400 (EDT) |
branch: elpa/symbol-overlay
commit 4f60487e456ed44e722db99455d2f3aaa86cd2d4
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Add new variable symbol-overlay-inhibit-map
When this is non-nil, then the highlighting overlays don't
use `symbol-overlay-map'.
This is intended for buffers/modes that use the keymap text
property for their own purposes. Because this package uses
overlays it would always override the text property keymaps
of such packages.
---
symbol-overlay.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/symbol-overlay.el b/symbol-overlay.el
index f6eaff1143..9b8391b95b 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -173,6 +173,13 @@ definitions to prevent a language's keywords from getting
highlighted."
;;; Internal
+(defvar-local symbol-overlay-inhibit-map nil
+ "When non-nil, don't use `symbol-overlay-map'.
+This is intended for buffers/modes that use the keymap text
+property for their own purposes. Because this package uses
+overlays it would always override the text property keymaps
+of such packages.")
+
(defvar symbol-overlay-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "i") 'symbol-overlay-put)
@@ -338,7 +345,8 @@ If FACE is non-nil, use it as the overlay’s face.
Otherwise apply `symbol-overlay-default-face'."
(let ((ov (make-overlay (match-beginning 0) (match-end 0))))
(if face (progn (overlay-put ov 'face face)
- (overlay-put ov 'keymap symbol-overlay-map)
+ (unless symbol-overlay-inhibit-map
+ (overlay-put ov 'keymap symbol-overlay-map))
(overlay-put ov 'evaporate t)
(overlay-put ov 'symbol symbol))
(overlay-put ov 'face 'symbol-overlay-default-face)
- [nongnu] elpa/symbol-overlay 7d77f2e962 091/152: Declare symbol-overlay-ignore-functions's custom type, (continued)
- [nongnu] elpa/symbol-overlay 7d77f2e962 091/152: Declare symbol-overlay-ignore-functions's custom type, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay ccf791377a 109/152: Preserve highlighting after buffer was reverted, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 8b8888c8b2 123/152: Merge pull request #54 from dakra/ignore-java, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 39f772b531 137/152: Prefer to check for selected window in timer callback, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay f2734ce633 132/152: Merge pull request #60 from cireu/fix-percentage-prefix-symbol, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay a6683f1089 003/152: init, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 0a03aecead 041/152: fix errors when renaming in scope, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay e19f7adcdf 062/152: Merge pull request #7 from Bad-ptr/patch-1, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay dd7b910402 065/152: Use defvar-local to avoid needing make-variable-buffer-local, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 6c7ec584b6 074/152: 170826, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 4f60487e45 124/152: Add new variable symbol-overlay-inhibit-map,
ELPA Syncer <=
- [nongnu] elpa/symbol-overlay 8096a684c2 129/152: Prefer "Rename to" in prompt for symbol renaming, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 35bd60ead7 127/152: Don't make symbol-overlay-inhibit-map local by default, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 4528aa0e62 130/152: Link to transient snippet from README, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 0707b8cc3e 146/152: Cancel a buffer’s ‘symbol-overlay-cancel-timer’ when it is killed, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay d08c33dc85 149/152: Merge pull request #79 from minad/lexical-binding, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 7ddebd54d3 107/152: Consistently use spaces for indentation, ELPA Syncer, 2022/07/07