[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beframe 24d0f133b2 4/8: Proposal for refactored `befram
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beframe 24d0f133b2 4/8: Proposal for refactored `beframe--global-buffers' |
Date: |
Thu, 15 Aug 2024 15:57:32 -0400 (EDT) |
branch: externals/beframe
commit 24d0f133b2675ed446ed36797752499b10d26742
Author: Bruno Boal <egomet@bboal.com>
Commit: Bruno Boal <egomet@bboal.com>
Proposal for refactored `beframe--global-buffers'
---
beframe.el | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/beframe.el b/beframe.el
index 6b61643db0..c57c0e2145 100644
--- a/beframe.el
+++ b/beframe.el
@@ -155,6 +155,20 @@ The following values of ARG can be used:
(beframe--remove-internal-buffers (frame-parameter arg 'buffer-list)))
(_ (user-error "Wrong argument in `beframe--get-buffers' pcase"))))
+
+(defun beframe--global-buffers ()
+ "Return list of `beframe-global-buffers' buffer objects."
+ (pcase-let* ((pub-buffs (beframe--get-buffers 'public))
+ (`(,str-re ,modes-lst)
+ (cl-loop for E in beframe-global-buffers
+ if (stringp E) collect E into str
+ else if (symbolp E) collect E into sym
+ finally return (list (string-join str "\\|") sym))))
+ (cl-loop for b in pub-buffs
+ if (string-match-p str-re (buffer-name b)) collect b
+ else if (with-current-buffer b (derived-mode-p modes-lst))
+ collect b)))
+
(cl-defun beframe-buffer-list (&optional frame &key sort)
"Return list of buffers that are used by the current frame.
With optional FRAME as an object that satisfies `framep', return
- [elpa] externals/beframe updated (cd766c5b9c -> 4c9aa91dc3), ELPA Syncer, 2024/08/15
- [elpa] externals/beframe c54b028a73 1/8: Harden beframe-infer-frame-name wrt known project dirs, ELPA Syncer, 2024/08/15
- [elpa] externals/beframe 584b5378e7 3/8: Fix issue with frame argument in 'beframe--get-buffers', ELPA Syncer, 2024/08/15
- [elpa] externals/beframe 50dace927c 2/8: Acknowledge Bruno Boal for commits 5fa7306, 3009b26, ELPA Syncer, 2024/08/15
- [elpa] externals/beframe 81dae94b66 7/8: Merge pull request #6 from fritzgrabo/harden-beframe-infer-frame-name, ELPA Syncer, 2024/08/15
- [elpa] externals/beframe 4c9aa91dc3 8/8: Acknowledge Fritz Grabo for commit c54b028, ELPA Syncer, 2024/08/15
- [elpa] externals/beframe 24d0f133b2 4/8: Proposal for refactored `beframe--global-buffers',
ELPA Syncer <=
- [elpa] externals/beframe bf6453d764 6/8: Merge pull request #8 from BBoal/collect-bufs, ELPA Syncer, 2024/08/15
- [elpa] externals/beframe 70d120a66b 5/8: Merge branch 'protesilaos:main' into collect-bufs, ELPA Syncer, 2024/08/15