feature/workspaces: refactor +workspace-buffer-list
This commit is contained in:
parent
a43b88b18a
commit
f2a4028f30
1 changed files with 7 additions and 5 deletions
|
@ -85,11 +85,13 @@ The buffer list is ordered by recency (same as `buffer-list').
|
||||||
|
|
||||||
PERSP can be a string (name of a workspace) or a workspace (satisfies
|
PERSP can be a string (name of a workspace) or a workspace (satisfies
|
||||||
`+workspace-p'). If nil or omitted, it defaults to the current workspace."
|
`+workspace-p'). If nil or omitted, it defaults to the current workspace."
|
||||||
(let ((persp (or persp (+workspace-current))))
|
(unless persp
|
||||||
(cl-assert (+workspace-p persp) t)
|
(setq persp (+workspace-current)))
|
||||||
(cl-loop for buf in (buffer-list)
|
(unless (+workspace-p persp)
|
||||||
if (+workspace-contains-buffer-p buf persp)
|
(error "You're in the nil perspective"))
|
||||||
collect buf)))
|
(cl-loop for buf in (buffer-list)
|
||||||
|
if (+workspace-contains-buffer-p buf persp)
|
||||||
|
collect buf))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace-orphaned-buffer-list ()
|
(defun +workspace-orphaned-buffer-list ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue