[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idle-highlight-mode 0423fc2b38 55/59: Fix #2 Substrings of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idle-highlight-mode 0423fc2b38 55/59: Fix #2 Substrings of identifiers are highlighted |
Date: |
Thu, 7 Jul 2022 12:00:33 -0400 (EDT) |
branch: elpa/idle-highlight-mode
commit 0423fc2b387dae8750901fbe603b750b8d7abe43
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Fix #2 Substrings of identifiers are highlighted
Scan for symbol bounds instead of word bounds.
---
changelog.rst | 2 +-
idle-highlight-mode.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/changelog.rst b/changelog.rst
index 0fb8801733..364085a28b 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -1,5 +1,5 @@
- In development (2022-01-20)
-
+ - Fix #2 use symbol instead of word bounds when scanning items to highlight.
- Fix #1 font face detection when overlays were in use (such as
``hl-line-mode``).
- Fix highlighting with multiple windows sharing one buffer.
- Add ``idle-highlight-visible-buffers`` to support highlighting all buffers
with the current symbol.
diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index 331c740896..9b675aabd9 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -232,7 +232,7 @@ Where RANGES is an unordered list of (min . max) cons
cells."
Argument VISIBLE-RANGES is a list of (min . max) ranges to highlight."
(idle-highlight--unhighlight)
(save-excursion
- (let ((target-regexp (concat "\\<" (regexp-quote target) "\\>")))
+ (let ((target-regexp (concat "\\_<" (regexp-quote target) "\\_>")))
(dolist (range visible-ranges)
(pcase-let ((`(,beg . ,end) range))
(goto-char beg)
- [nongnu] branch elpa/idle-highlight-mode created (now 5418252a11), ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 1e0b38c09f 02/59: [Refactor] Save the last highlighted regexp in a variable for easier unhighlighting., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 64d6522636 10/59: Fix documentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 902df81b5a 18/59: Cleanup: deprecation warning using `in-string-p`, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode c4be332ecb 34/59: readme: move hints into their own section, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode aa4c7a7ada 40/59: readme: update description, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 4714dcafcc 36/59: readme: add default values for settings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 2b627d5d45 24/59: Cleanup: be explicit that this mode isn't global, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 20a0fb798c 27/59: Disable the repeating idle timer when the minor mode isn't active, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 082ce4f5fc 48/59: Fix highlighting visible ranges, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 0423fc2b38 55/59: Fix #2 Substrings of identifiers are highlighted,
ELPA Syncer <=
- [nongnu] elpa/idle-highlight-mode 7401286a4b 01/59: Version 1.0. Initial Commit., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode df7f6a84f5 07/59: Highlight only when point is on a symbol character., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 834d03af77 08/59: Update version to 1.1.2, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode f360d4e7fe 12/59: [Formatting] Place defcustoms before defvars., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 10eda41c22 15/59: Cleanup: use '--' separator for private functions and variables, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode fa7a82993e 16/59: Cleanup: use defvar-local, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 14150dde6b 17/59: Cleanup: quiet checkdoc warnings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 59f5c6ce37 23/59: Add readme, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 2bc509cc28 20/59: Cleanup: byte code compiler warnings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 93a498516e 19/59: Cleanup: slightly more efficient checks, postpone calling symbol-name, ELPA Syncer, 2022/07/07