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:
Henrik Lissner 2018-06-30 00:57:41 +02:00
parent 537cc9e1ed
commit 83ba527afd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 7 additions and 23 deletions

View file

@ -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)))