[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idle-highlight-mode defcfe2756 54/59: Fix #1 face exceptio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idle-highlight-mode defcfe2756 54/59: Fix #1 face exceptions interact badly with hl-line-mode |
Date: |
Thu, 7 Jul 2022 12:00:33 -0400 (EDT) |
branch: elpa/idle-highlight-mode
commit defcfe2756a50911a71d4eeb3f0a353baf019a7e
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Fix #1 face exceptions interact badly with hl-line-mode
---
changelog.rst | 3 ++-
idle-highlight-mode.el | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/changelog.rst b/changelog.rst
index baae007619..0fb8801733 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -1,5 +1,6 @@
-- In development (2021-08-29)
+- In development (2022-01-20)
+ - 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.
- Add ``idle-highlight-exceptions-syntax`` so the characters used in the
syntax-table used can be customized.
diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index 42afa6fb3a..331c740896 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -126,7 +126,9 @@ Argument POS return faces at this point."
(let
( ;; List of faces to return.
(faces nil)
- (faceprop (or (get-char-property pos 'read-face-name) (get-char-property
pos 'face))))
+ ;; NOTE: use `get-text-property' instead of `get-char-property' so
overlays are excluded,
+ ;; since this causes overlays with `hl-line-mode' (for example) to mask
keywords, see: #1.
+ (faceprop (or (get-text-property pos 'read-face-name) (get-text-property
pos 'face))))
(cond
((facep faceprop)
(push faceprop faces))
- [nongnu] elpa/idle-highlight-mode 9435c1f3ca 41/59: readme: correct references to idle-time, (continued)
- [nongnu] elpa/idle-highlight-mode 9435c1f3ca 41/59: readme: correct references to idle-time, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 768745ef1c 21/59: Cleanup: add code sections, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 0916be7075 53/59: Cleanup: docstrings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 5881f796ad 57/59: Minor tweaks to code-comments, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode e6239e06fd 22/59: Add license file., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode ac31f75fd0 28/59: Remove local variable when the mode is disabled, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode c7af42119a 38/59: Cleanup: remove unnecessary variable, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 5418252a11 59/59: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 53b4e3c855 45/59: Add option idle-highlight-exceptions-syntax, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 459720cd2e 29/59: Add `global-idle-highlight-mode` (globalized minor mode), ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode defcfe2756 54/59: Fix #1 face exceptions interact badly with hl-line-mode,
ELPA Syncer <=
- [nongnu] elpa/idle-highlight-mode 1f40f80921 30/59: Remove "end" from idle-highlight-exceptions, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 305e9d4aa0 26/59: Cleanup: remove intermediate symbol type variable, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode eaac86a1a2 49/59: Add idle-highlight-visible-buffers to apply to all buffers, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 7f81263388 11/59: Add configurations for excepted words and what idle time to use., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 7c43cc3d7a 09/59: [Refactor] Lose some weight., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 3d785f0f1d 44/59: Support *-exceptions & *-exceptions-face to be callback functions, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode e8f724fec2 35/59: Use a local list of overlays for highlighting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode a801e7113f 43/59: Remove 'idle-highlight-use-hi-lock-mode', ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 97047f2574 33/59: Add Campbell Barton as an author, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 98d20252d6 42/59: readme: add "Motivation" & "Other Packages" section, ELPA Syncer, 2022/07/07