emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: bufferlo


From: Stefan Kangas
Subject: Re: [ELPA] New package: bufferlo
Date: Sat, 28 Oct 2023 08:21:31 -0700

Florian Rommel <mail@florommel.de> writes:

> I propose the following package for inclusion in ELPA:
> https://github.com/florommel/bufferlo
>
> It provides additional separate buffer lists per frame and (tab-bar)
> tab and functions to manage them.
>
> Different from similar buffer-isolation solutions it supports tabs.
> It also integrates well with all the standard frame and tab management
> facilities and has support for persisting sessions via desktop.el.
>
> Thanks for your feedback.

Thanks, do you mean to add it to GNU ELPA?  If so, I see no reason why
we can't add it.  Please find some comments on your code below.

1. Here are some warnings from `package-lint':

6 issues found:

146:22: error: You should depend on (emacs "28.1") if you need `clone-frame'.
147:22: error: You should depend on (emacs "29.1") if you need `undelete-frame'.
166:21: error: You should depend on (emacs "28.1") if you need `clone-frame'.
167:21: error: You should depend on (emacs "29.1") if you need `undelete-frame'.
517:1: warning: `with-eval-after-load' is for use in configurations,
and should rarely be used in packages.
523:1: warning: `with-eval-after-load' is for use in configurations,
and should rarely be used in packages.

2. Here are some byte-compiler warnings:

Compiling file /Users/skangas/wip/bufferlo/bufferlo.el at Sat Oct 28
17:12:56 2023
bufferlo.el:518:26: Warning: reference to free variable
    ‘ibuffer-filtering-alist’
bufferlo.el:517:24: Warning: assignment to free variable
    ‘ibuffer-filtering-alist’
bufferlo.el:526:17: Warning: reference to free variable ‘ibuffer--filter-map’

In end of data:
bufferlo.el:527:19: Warning: the function
    ‘ibuffer-filter-by-bufferlo-local-buffers’ is not known to be defined.
bufferlo.el: Warning: the function ‘ibuffer-pop-filter’ is not known to be
    defined.
bufferlo.el: Warning: the function ‘ibuffer-update’ is not known to be
    defined.
bufferlo.el: Warning: the function ‘ibuffer-push-filter’ is not known to be
    defined.

3. You might want to consider running `M-x checkdoc' as well.

4. See the below diff with some stylistic improvements that I found
   while skimming the code:

diff --git a/bufferlo.el b/bufferlo.el
index 3bc92b5..daecb85 100644
--- a/bufferlo.el
+++ b/bufferlo.el
@@ -1,4 +1,5 @@
 ;;; bufferlo.el --- Manage frame/tab-local buffer lists -*-
lexical-binding: t -*-
+
 ;; Copyright (C) 2021-2023 Free Software Foundation, Inc.

 ;; Author: Florian Rommel <mail@florommel.de>
@@ -6,7 +7,7 @@
 ;; Url: https://github.com/florommel/bufferlo
 ;; Created: 2021-09-15
 ;; Version: 0.2
-;; Package-Requires: ((emacs "27.1"))
+;; Package-Requires: ((emacs "29.1"))
 ;; Keywords: buffer frame tabs local

 ;; This program is free software: you can redistribute it and/or modify
@@ -69,41 +70,36 @@ This is also required to make `next-buffer' and
`previous-buffer'
 work as expected.
 Changes to this variable must be made before enabling
 `bufferlo-mode' in order to take effect."
-  :group 'bufferlo
   :type 'boolean)

 (defcustom bufferlo-include-buried-buffers t
   "Include buried buffers in the local list (`bufferlo-buffer-list').
 Use `bufferlo-bury' to remove and bury a buffer if this is set to t."
-  :group 'bufferlo
   :type 'boolean)

 (defcustom bufferlo-include-buffer-filters nil
   "Buffers that should always get included in a new tab or frame.
 This is a list of regular expressions that match buffer names.
 This overrides buffers excluded by `bufferlo-exclude-buffer-filters.'"
-  :group 'bufferlo
   :type '(repeat string))

 (defcustom bufferlo-exclude-buffer-filters '(".*")
   "Buffers that should always get excluded in a new tab or frame.
 This is a list of regular expressions that match buffer names.
 Buffers included by `bufferlo-include-buffer-filters' take precedence."
-  :group 'bufferlo
   :type '(repeat string))

 (defcustom bufferlo-hidden-buffers nil
-  "Buffers that should be hidden in the local buffer lists,
-even if they are displayed in the current frame or tab.
-This is a list of regular expressions that match buffer names."
-  :group 'bufferlo
+  "List of regexps matching names of buffers to hide in the local buffer lists.
+They are hidden even if they are displayed in the current frame
+or tab.  This is a list of regular expressions that match buffer
+names."
   :type '(repeat string))

 (defcustom bufferlo-kill-buffers-exclude-filters
   '("\\` " "\\`\\*Messages\\*\\'" "\\`\\*scratch\\*\\'")
   "Buffers that should not be killed by `bufferlo-kill-buffers'.
 This is a list of regular expressions that match buffer names."
-  :group 'bufferlo
   :type '(repeat string))

 (defcustom bufferlo-ibuffer-bind-local-buffer-filter t



reply via email to

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