+workspace-contains-buffer-p -> persp-contain-buffer-p
Wrapper is unnecessary. Also remove unnecessary type checking.
This commit is contained in:
parent
c760bf7205
commit
34de826ac4
1 changed files with 2 additions and 4 deletions
|
@ -38,13 +38,11 @@
|
|||
;;;###autoload
|
||||
(defun +workspace-exists-p (name)
|
||||
"Returns t if NAME is the name of an existing workspace."
|
||||
(cl-check-type name string)
|
||||
(member name (+workspace-list-names)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspace-contains-buffer-p (buffer &optional workspace)
|
||||
"Return non-nil if BUFFER is in WORKSPACE (defaults to current workspace)."
|
||||
(persp-contain-buffer-p buffer (or workspace (+workspace-current)) nil))
|
||||
(defalias #'+workspace-contains-buffer-p #'persp-contain-buffer-p
|
||||
"Return non-nil if BUFFER is in WORKSPACE (defaults to current workspace).")
|
||||
|
||||
|
||||
;; --- Getters ----------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue