mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-17 13:33:36 -05:00
Use frame's buffer-predicate instead of doom/{next,previous}-buffer
doom/{next,previous}-buffer was implemented so that these commands could skip over unreal buffers, and land us on either a real one or the dashboard. Using the frame's buffer-predicate parameter accomplishes exactly this, natively.
This commit is contained in:
@@ -48,6 +48,12 @@
|
||||
"Return non-nil if buffer is in workspace (defaults to current workspace)."
|
||||
(persp-contain-buffer-p buffer (or workspace (+workspace-current)) nil))
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspace-alien-buffer-p (buffer)
|
||||
"Return non-nil if BUFFER isn't a member of the current workspace."
|
||||
(and (get-buffer-window buffer)
|
||||
(not (+workspace-contains-buffer-p buffer))))
|
||||
|
||||
|
||||
;; --- Getters ----------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user