emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/switchy-window 826fc65d1e 05/10: switchy-window: signal


From: ELPA Syncer
Subject: [elpa] externals/switchy-window 826fc65d1e 05/10: switchy-window: signal error if switchy-minor-mode is not enabled
Date: Sun, 9 Apr 2023 07:59:41 -0400 (EDT)

branch: externals/switchy-window
commit 826fc65d1e95b801dbfcc52ce312cdd689cf4747
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    switchy-window: signal error if switchy-minor-mode is not enabled
---
 switchy.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/switchy.el b/switchy.el
index a8b39cb5d7..fb08ee6efd 100644
--- a/switchy.el
+++ b/switchy.el
@@ -107,6 +107,10 @@ LRU order and cycles when all windows have been visited.  
If
 the now selected window gets its tick updated (a kind of
 timestamp)."
   (interactive)
+
+  (unless switchy-minor-mode
+    (user-error "switchy-window requires `switchy-minor-mode' being active"))
+
   ;; Remove dead windows.
   (setq switchy--tick-alist (seq-filter
                              (lambda (e)



reply via email to

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