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

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

[elpa] externals/bufferlo 23cbe682c4 15/37: More parameters


From: ELPA Syncer
Subject: [elpa] externals/bufferlo 23cbe682c4 15/37: More parameters
Date: Sun, 5 Nov 2023 09:57:32 -0500 (EST)

branch: externals/bufferlo
commit 23cbe682c4a0229655d089082f554a48283c5335
Author: Florian Rommel <mail@florommel.de>
Commit: Florian Rommel <mail@florommel.de>

    More parameters
---
 bufferlo.el | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/bufferlo.el b/bufferlo.el
index a3804b3f0c..5e8ea3f2bc 100644
--- a/bufferlo.el
+++ b/bufferlo.el
@@ -147,15 +147,19 @@ This is a list of regular expressions that match buffer 
names."
     (advice-remove #'tab-bar-select-tab #'bufferlo--activate)
     (advice-remove #'tab-bar--tab #'bufferlo--activate)))
 
-(defun bufferlo-local-buffer-p (buffer &optional frame)
+(defun bufferlo-local-buffer-p (buffer &optional frame tabnum)
   "Return whether BUFFER is in the list of local buffers.
-If FRAME is non-nil check if the buffer is local to the given frame."
-  (memq buffer (bufferlo--current-buffers frame)))
+A non-nil value of FRAME selects a specific frame instead of the current one.
+If TABNUM is nil, the current tab is used.  If it is non-nil, it specifies
+a tab index in the given frame."
+  (memq buffer (bufferlo-buffer-list frame tabnum)))
 
-(defun bufferlo-non-local-buffer-p (buffer &optional frame)
+(defun bufferlo-non-local-buffer-p (buffer &optional frame tabnum)
   "Return whether BUFFER is not in the list of local buffers.
-If FRAME is non-nil check if the buffer is not local to the given frame."
-  (not (bufferlo-local-buffer-p buffer frame)))
+A non-nil value of FRAME selects a specific frame instead of the current one.
+If TABNUM is nil, the current tab is used.  If it is non-nil, it specifies
+a tab index in the given frame."
+  (not (bufferlo-local-buffer-p buffer frame tabnum)))
 
 (defun bufferlo--set-buffer-predicate (frame)
   "Set the buffer predicate of FRAME to `bufferlo-local-buffer-p'."



reply via email to

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