branch: elpa/doc-show-inline
commit 87993d064d02dcdbb3dcfd883e4a0b498b0978d8
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Correct use of null/not
---
doc-show-inline.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc-show-inline.el b/doc-show-inline.el
index 7d02ae3f6f9..21649b943d9 100644
--- a/doc-show-inline.el
+++ b/doc-show-inline.el
@@ -827,12 +827,12 @@ XREF-BACKEND is the back-end used to find this symbol."
(with-current-buffer buf
(cond
- ((null (get-buffer-window buf t))
- (doc-show-inline--log-info "idle timer ignored for buffer %S without a
window" buf))
- ((null (bound-and-true-p doc-show-inline-mode))
+ ((not (bound-and-true-p doc-show-inline-mode))
(doc-show-inline--log-info
"idle timer ignored for buffer %S without `doc-show-inline-mode' set"
buf))
+ ((null (get-buffer-window buf t))
+ (doc-show-inline--log-info "idle timer ignored for buffer %S without a
window" buf))
(t
(doc-show-inline--log-info "idle timer for buffer %S callback
running..." buf)
;; In the unlikely event of an error, run the timer again.