+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
|
;;;###autoload
|
||||||
(defun +workspace-exists-p (name)
|
(defun +workspace-exists-p (name)
|
||||||
"Returns t if NAME is the name of an existing workspace."
|
"Returns t if NAME is the name of an existing workspace."
|
||||||
(cl-check-type name string)
|
|
||||||
(member name (+workspace-list-names)))
|
(member name (+workspace-list-names)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace-contains-buffer-p (buffer &optional workspace)
|
(defalias #'+workspace-contains-buffer-p #'persp-contain-buffer-p
|
||||||
"Return non-nil if BUFFER is in WORKSPACE (defaults to current workspace)."
|
"Return non-nil if BUFFER is in WORKSPACE (defaults to current workspace).")
|
||||||
(persp-contain-buffer-p buffer (or workspace (+workspace-current)) nil))
|
|
||||||
|
|
||||||
|
|
||||||
;; --- Getters ----------------------------
|
;; --- Getters ----------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue