Refactor auto-add-buffer functionality
Use built-in mechanism for auto-adding buffers to current workspace, rather than reinvent the wheel.
This commit is contained in:
parent
537cc9e1ed
commit
83ba527afd
3 changed files with 7 additions and 23 deletions
|
@ -79,10 +79,6 @@
|
|||
(expect (+workspace-contains-buffer-p in1)))
|
||||
(it "returns nil for buffers outside of current workspace"
|
||||
(expect (+workspace-contains-buffer-p out1) :to-be nil))
|
||||
(it "automatically adds interactively opened buffers"
|
||||
(expect (+workspace-contains-buffer-p out1) :to-be nil)
|
||||
(with-current-buffer out1 (+workspaces|auto-add-buffer))
|
||||
(expect (+workspace-contains-buffer-p out1)))
|
||||
(xit "returns a list of orphaned buffers"
|
||||
(expect (+workspace-orphaned-buffer-list) :to-contain out2)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue