[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idle-highlight-mode 94790ca395 47/59: Cleanup: variable na
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idle-highlight-mode 94790ca395 47/59: Cleanup: variable names |
Date: |
Thu, 7 Jul 2022 12:00:32 -0400 (EDT) |
branch: elpa/idle-highlight-mode
commit 94790ca395ddf055c65739882eeadfa9968c1286
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: variable names
---
idle-highlight-mode.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index 95df5b8844..166706eb25 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -192,8 +192,8 @@ Argument POS return faces at this point."
(mapc 'delete-overlay idle-highlight--overlays)
(setq idle-highlight--overlays nil)))
-(defsubst idle-highlight--highlight (target beg end)
- "Highlight TARGET found between BEG and END.h."
+(defsubst idle-highlight--highlight (target target-beg target-end)
+ "Highlight TARGET found between TARGET-BEG and TARGET-END"
(idle-highlight--unhighlight)
(save-excursion
(let
@@ -201,12 +201,12 @@ Argument POS return faces at this point."
(target-regexp (concat "\\<" (regexp-quote target) "\\>"))
(beg-ex
(progn
- (goto-char (max (point-min) (min beg (window-start))))
+ (goto-char (max (point-min) (min target-beg (window-start))))
(beginning-of-line)
(point)))
(end-ex
(progn
- (goto-char (min (point-max) (max end (window-end))))
+ (goto-char (min (point-max) (max target-end (window-end))))
(beginning-of-line)
(end-of-line)
(point))))
@@ -214,7 +214,7 @@ Argument POS return faces at this point."
(range
(cond
(idle-highlight-exclude-point
- (list (cons beg-ex beg) (cons end end-ex)))
+ (list (cons beg-ex target-beg) (cons target-end end-ex)))
(t
(list (cons beg-ex end-ex)))))
(goto-char (car range))
@@ -229,10 +229,10 @@ Argument POS return faces at this point."
(when (idle-highlight--check-symbol-at-point (point))
(let ((target-range (bounds-of-thing-at-point 'symbol)))
(when (and target-range (idle-highlight--check-faces-at-point (point)))
- (pcase-let ((`(,beg . ,end) target-range))
- (let ((target (buffer-substring-no-properties beg end)))
+ (pcase-let ((`(,target-beg . ,target-end) target-range))
+ (let ((target (buffer-substring-no-properties target-beg
target-end)))
(when (idle-highlight--check-word target)
- (idle-highlight--highlight target beg end))))))))
+ (idle-highlight--highlight target target-beg target-end))))))))
;; ---------------------------------------------------------------------------
- [nongnu] elpa/idle-highlight-mode df7f6a84f5 07/59: Highlight only when point is on a symbol character., (continued)
- [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
- [nongnu] elpa/idle-highlight-mode 8be1b197d6 39/59: Add changelog, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 94790ca395 47/59: Cleanup: variable names,
ELPA Syncer <=
- [nongnu] elpa/idle-highlight-mode bdc6cb06e0 37/59: Reduce the default idle time to 0.35 seconds, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode f47a2cc796 50/59: Cleanup: replace 'if' with 'cond', ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 7d6eba737d 52/59: Cleanup: remove redundant groups, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 05db87d2a5 32/59: Cleanup: replace defsubst with defun, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 21b63d0502 25/59: Cleanup: simplify coding hook example, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 4f41607fa1 31/59: Add idle-highlight-exceptions-face, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 0a24f8e402 58/59: Cleanup: use brief SPDX license, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 03b5de12a6 56/59: changelog: correct syntax, ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode f6ea983df9 06/59: Remove previous highlights if there's nothing to highlight at point., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode 83df5da535 05/59: Header, footer, usage comments, ELPA Syncer, 2022/07/07