[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 206468a 3/4: on-screen-enabled-p: use `or' instead of `if'

From: Michael Heerdegen
Subject: [elpa] master 206468a 3/4: on-screen-enabled-p: use `or' instead of `if'
Date: Wed, 02 Mar 2016 10:14:51 +0000

branch: master
commit 206468aa4de299ad26c2db12b757f5ad7290912f
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>

    on-screen-enabled-p: use `or' instead of `if'
    Thanks Stefan.
 on-screen.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/on-screen.el b/on-screen.el
index bce3c56..e5c3977 100644
--- a/on-screen.el
+++ b/on-screen.el
@@ -636,7 +636,7 @@ highlightings and clear all associated data."
   "Return non-nil if on-screen is enabled in BUFFER."
   (with-current-buffer (or buffer (current-buffer))
-     (if on-screen-global-mode t on-screen-mode)
+     (or on-screen-global-mode on-screen-mode)
       ((not on-screen-inhibit-highlighting) t)
       ((functionp on-screen-inhibit-highlighting)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]