[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iwindow 16c6c97143 09/13: Don't error when PREDICATE is ni
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iwindow 16c6c97143 09/13: Don't error when PREDICATE is nil |
Date: |
Sun, 27 Nov 2022 16:01:12 -0500 (EST) |
branch: elpa/iwindow
commit 16c6c971431b4a7303d374c5afa51b10427af6ab
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Don't error when PREDICATE is nil
---
iwindow.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/iwindow.el b/iwindow.el
index b06464f51a..c808bd26f9 100644
--- a/iwindow.el
+++ b/iwindow.el
@@ -99,14 +99,15 @@ CALLBACK and revert the changes it has done."
(defun iwindow--make-decision-tree (windows start end predicate)
"Make a decision tree from window in WINDOWS from START to END.
-Don't include windows for which PREDICATE returns nil.
+Don't include windows for which PREDICATE returns nil, if PREDICATE is
+non-nil.
Return an object OPTION, where OPTION is either a window, nil, or a
list of form (OPTION...), whose length of no more than the length of
`iwindow-selection-keys'."
(if (= (- end start) 1)
(let ((window (aref windows start)))
- (when (funcall predicate window)
+ (when (or (not predicate) (funcall predicate window))
window))
(let ((result nil)
(option-count (length iwindow-selection-keys)))
- [nongnu] branch elpa/iwindow created (now 144c402d5f), ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow bfc5e97dfe 03/13: Add iwindow-swap, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 16c6c97143 09/13: Don't error when PREDICATE is nil,
ELPA Syncer <=
- [nongnu] elpa/iwindow 89989ad071 10/13: Minor cleanup, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow fc092c6b64 12/13: Lower Emacs minimum requirement to 24.3, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow cbbcdb32b2 05/13: Suppress runtime warning, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow f7b47e3bd8 04/13: Show keys for minibuffer on minibuffer, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 13b9c558bf 11/13: Replace cl-labels with named-let, use Compat if needed, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 144c402d5f 13/13: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 6c5ea91142 02/13: Allow to use any arbitrary face to highlight, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 285f40ff09 01/13: Add iwindow-select, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow a32c522f80 06/13: Add iwindow-delete and iwindow-delete-others, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow f5cf9ed724 07/13: Don't show raw key code on unbound key, ELPA Syncer, 2022/11/27