[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idle-highlight-mode ae5e663dda 08/16: Cleanup: formatting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idle-highlight-mode ae5e663dda 08/16: Cleanup: formatting |
Date: |
Tue, 7 Feb 2023 23:59:17 -0500 (EST) |
branch: elpa/idle-highlight-mode
commit ae5e663dda456ac15dee681c0e8ee3cc633c74ac
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: formatting
---
idle-highlight-mode.el | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index a01335c551..0df311ca27 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -107,12 +107,10 @@ check this buffer.")
(defun idle-highlight--faces-at-point (pos)
"Add the named faces that the `read-face-name' or `face' property use.
Argument POS return faces at this point."
- (let
- ( ;; List of faces to return.
- (faces nil)
- ;; 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))))
+ (let ((faces nil) ; List of faces to return.
+ ;; 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))
@@ -150,7 +148,7 @@ Where RANGES is an unordered list of (min . max) cons
cells."
(setcdr ranges-iter ranges-next)))))
ranges))
- (t ;; No need for complex logic single/empty lists.
+ (t ; No need for complex logic single/empty lists.
ranges)))
@@ -184,7 +182,7 @@ Where RANGES is an unordered list of (min . max) cons
cells."
;; Break.
(setq faces-at-pos nil))))))))
result))
- (t ;; Default to true, if there are no exceptions.
+ (t ; Default to true, if there are no exceptions.
t)))
(defun idle-highlight--check-word (target)
@@ -273,12 +271,11 @@ should be the result of
`idle-highlight--word-at-point-args'."
(defun idle-highlight--time-callback-or-disable ()
"Callback that run the repeat timer."
- (let
- ( ;; Ensure all other buffers are highlighted on request.
- (is-mode-active (bound-and-true-p idle-highlight-mode))
- (buf-current (current-buffer))
- (dirty-buffer-list (list))
- (force-all idle-highlight-visible-buffers))
+ ;; Ensure all other buffers are highlighted on request.
+ (let ((is-mode-active (bound-and-true-p idle-highlight-mode))
+ (buf-current (current-buffer))
+ (dirty-buffer-list (list))
+ (force-all idle-highlight-visible-buffers))
;; When this buffer is not in the mode, flush all other buffers.
(cond
@@ -345,7 +342,7 @@ should be the result of
`idle-highlight--word-at-point-args'."
;; Always keep the current buffer dirty
;; so navigating away from this buffer will refresh it.
(setq idle-highlight--dirty t))
- (t ;; Cancel the timer until the current buffer uses this mode again.
+ (t ; Cancel the timer until the current buffer uses this mode again.
(idle-highlight--time-ensure nil)))))
(defun idle-highlight--time-ensure (state)
- [nongnu] elpa/idle-highlight-mode ca1c028daf 04/16: Add melpa link, (continued)
- [nongnu] elpa/idle-highlight-mode ca1c028daf 04/16: Add melpa link, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 00938d86b4 01/16: Correct URL, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 9976d951f5 07/16: Cleanup: emacs native format, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode f8b3cf0de1 10/16: Update description, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 8ded8426e9 11/16: Release 1.1.4, avoid `global-` prefix for functions and variables, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode d0eb1dc453 15/16: Cleanup: reformat with updated elisp-autofmt, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 215d6612b4 16/16: Cleanup: disable formatting for quoted text, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode e654412df7 06/16: Cleanup: format, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 0a712722c9 03/16: Cleanup: use plist-dolist, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 37e181903c 09/16: Cleanup: add fill-column local variable, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode ae5e663dda 08/16: Cleanup: formatting,
ELPA Syncer <=
- [nongnu] elpa/idle-highlight-mode 6749314b0d 13/16: Fix compatibility for pos-bol/eol for emacs <29.1, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 6f3a6252e9 02/16: Resolve issues building the packages with elpa.gnu.org, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode c02f1c4bb2 05/16: Cleanup: require pcase for pcase-dolist, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 7c66d59da1 12/16: Cleanup: use pos-bol/eol as respecting fields isn't needed, ELPA Syncer, 2023/02/07
- [nongnu] elpa/idle-highlight-mode 024d86314e 14/16: Correct compatibility for pos-bol/eol for emacs <29.1, ELPA Syncer, 2023/02/07