[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bufferlo 778ede4d4b 35/37: Resolve checkdoc warnings
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/bufferlo 778ede4d4b 35/37: Resolve checkdoc warnings |
|
Date: |
Sun, 5 Nov 2023 09:57:34 -0500 (EST) |
branch: externals/bufferlo
commit 778ede4d4b40d4ddc4283586b80d59aa40637a9b
Author: Florian Rommel <mail@florommel.de>
Commit: Florian Rommel <mail@florommel.de>
Resolve checkdoc warnings
---
bufferlo.el | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
diff --git a/bufferlo.el b/bufferlo.el
index 1021555136..440e5caca6 100644
--- a/bufferlo.el
+++ b/bufferlo.el
@@ -259,7 +259,8 @@ Includes hidden buffers."
(set-frame-parameter frame 'buried-buffer-list nil)))
(defun bufferlo--tab-include-exclude-buffers (ignore)
- "Include and exclude buffers into buffer-list of the current tab's frame."
+ "Include and exclude buffers into the buffer list of the current tab's frame.
+Argument IGNORE is for compatibility with `tab-bar-tab-post-open-functions'."
(ignore ignore)
;; Reset the local buffer list unless we clone the tab (tab-duplicate).
(unless (or (eq tab-bar-new-tab-choice 'clone)
@@ -311,14 +312,19 @@ buffers, see `bufferlo-hidden-buffers'."
list))))
(defun bufferlo--window-state-get (oldfn &optional window writable)
- "Save the frame's buffer-list to the window state."
+ "Save the frame's buffer list to the window state.
+Used as advice around `window-state-get'. OLDFN is the original
+function. WINDOW and WRITABLE are passed to the function."
(let ((ws (apply oldfn (list window writable))))
(let* ((buffers (bufferlo--current-buffers (window-frame window)))
(names (mapcar #'buffer-name buffers)))
(if names (append ws (list (list 'bufferlo-buffer-list names))) ws))))
(defun bufferlo--window-state-put (state &optional window ignore)
- "Restore the frame's buffer-list from the window state."
+ "Restore the frame's buffer list from the window state.
+Used as advice after `window-state-put'. STATE is the window state.
+WINDOW is the window in question. IGNORE is not used and exists for
+compatibility with the adviced function."
(ignore ignore)
;; We have to make sure that the window is live at this point.
;; `frameset-restore' may pass a window with a non-existing buffer
@@ -339,12 +345,16 @@ buffers, see `bufferlo-hidden-buffers'."
(list (window-buffer window))))))
(defun bufferlo--activate (oldfn &rest args)
- "Activate the advice for `bufferlo--window-state-{get,put}'."
+ "Activate the advice for `bufferlo--window-state-{get,put}'.
+OLDFN is the original function. ARGS is for compatibility with
+the adviced functions."
(let ((bufferlo--desktop-advice-active t))
(apply oldfn args)))
(defun bufferlo--activate-force (oldfn &rest args)
- "Activate the advice for `bufferlo--window-state-{get,put}'."
+ "Activate the advice for `bufferlo--window-state-{get,put}'.
+OLDFN is the original function. ARGS is for compatibility with
+the adviced functions."
(let ((bufferlo--desktop-advice-active t)
(bufferlo--desktop-advice-active-force t))
(apply oldfn args)))
@@ -387,8 +397,7 @@ If FRAME is nil, use the current frame."
nil))
(defun bufferlo-remove-non-exclusive-buffers ()
- "Remove all buffers from the frame/tab's buffer list that are not
-exclusively attached to this frame/tab."
+ "Remove all buffers from the local buffer list that are not exclusive to it."
(interactive)
(dolist (buffer (bufferlo--get-exclusive-buffers nil t))
(bufferlo-remove buffer)))
@@ -470,16 +479,14 @@ Buffers matching `bufferlo-kill-buffers-exclude-filters'
are never killed."
(kill-buffer buffer)))))
(defun bufferlo-delete-frame-kill-buffers (&optional frame)
- "Delete a frame and kill all the local buffers according to
-`bufferlo-kill-buffers'.
+ "Delete a frame and kill the local buffers.
If FRAME is nil, kill the current frame."
(interactive)
(bufferlo-kill-buffers frame)
(delete-frame))
(defun bufferlo-tab-close-kill-buffers (&optional killall)
- "Close the current tab and kill all the local buffers according to
-`bufferlo-kill-buffers'.
+ "Close the current tab and kill the local buffers.
The optional parameter KILLALL is passed to `bufferlo-kill-buffers'"
(interactive "P")
(bufferlo-kill-buffers killall)
- [elpa] branch externals/bufferlo created (now 6d27fbd704), ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 387b84d5de 03/37: Fix package-lint issues, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo a1bea7ff9e 01/37: Initial commit, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo f214f92445 08/37: Fix typos, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo e40613cbbc 22/37: Fix buffer selection in empty tabs, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 41e6e56783 27/37: Fix clone-frame, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 36f5c68460 26/37: Fix tab movement and duplication, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 0254201487 11/37: Add prefix argument to bufferlo-switch-to-buffer, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 778ede4d4b 35/37: Resolve checkdoc warnings,
ELPA Syncer <=
- [elpa] externals/bufferlo d41a6b297b 17/37: Allow hidden buffers, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo bfe906c2aa 12/37: Update README, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 931b9ee346 32/37: Version 0.2, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 1dd04e4b41 14/37: Better ibuffer support, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo c164b26a64 36/37: Compatibility improvements, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 82f51c31ab 23/37: desktop.el support: Fix error on deleted windows, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 8f82be00b1 30/37: Add basic buffer-menu support, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 914c381e9f 16/37: Fix buffer matching, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo 46557c7f54 04/37: Minor changes, ELPA Syncer, 2023/11/05
- [elpa] externals/bufferlo c000ff8398 09/37: Add bufferlo-non-local-buffer-p, ELPA Syncer, 2023/11/05