[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idle-highlight-mode f47a2cc796 50/59: Cleanup: replace 'if
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idle-highlight-mode f47a2cc796 50/59: Cleanup: replace 'if' with 'cond' |
Date: |
Thu, 7 Jul 2022 12:00:32 -0400 (EDT) |
branch: elpa/idle-highlight-mode
commit f47a2cc796cf9d1029ef4fd47a94c478f4950de7
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: replace 'if' with 'cond'
Personal preference.
---
idle-highlight-mode.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index 5431b3640e..93fb56b481 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -447,9 +447,11 @@ Argument VISIBLE-RANGES is a list of (min . max) ranges to
highlight."
;; Optionally check if a function is used.
(or
(null global-idle-highlight-ignore-buffer)
- (if (functionp global-idle-highlight-ignore-buffer)
- (not (funcall global-idle-highlight-ignore-buffer (current-buffer)))
- nil)))
+ (cond
+ ((functionp global-idle-highlight-ignore-buffer)
+ (not (funcall global-idle-highlight-ignore-buffer
(current-buffer))))
+ (t
+ nil))))
(idle-highlight-mode 1)))
- [nongnu] elpa/idle-highlight-mode f360d4e7fe 12/59: [Formatting] Place defcustoms before defvars., (continued)
- [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, 2022/07/07
- [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 <=
- [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
- [nongnu] elpa/idle-highlight-mode 8b6e0dffd1 03/59: Implement idle highlighting as a minor mode., ELPA Syncer, 2022/07/07
- [nongnu] elpa/idle-highlight-mode ee5381764c 51/59: Add docstrings, ELPA Syncer, 2022/07/07