; Use `derived-mode-p'.
This commit is contained in:
parent
1364f80f09
commit
bc5f0b3ffa
6 changed files with 27 additions and 26 deletions
|
|
@ -506,7 +506,7 @@ for internal use only."
|
|||
(list
|
||||
(cond
|
||||
((null current-prefix-arg)
|
||||
(unless (and (eq major-mode 'exwm-mode)
|
||||
(unless (and (derived-mode-p 'exwm-mode)
|
||||
;; The prompt is invisible in fullscreen mode.
|
||||
(exwm-layout--fullscreen-p))
|
||||
(let ((exwm-workspace--prompt-add-allowed t)
|
||||
|
|
@ -644,7 +644,7 @@ Passing a workspace frame as the first option is for internal use only."
|
|||
(defun exwm-workspace-swap (workspace1 workspace2)
|
||||
"Interchange position of WORKSPACE1 with that of WORKSPACE2."
|
||||
(interactive
|
||||
(unless (and (eq major-mode 'exwm-mode)
|
||||
(unless (and (derived-mode-p 'exwm-mode)
|
||||
;; The prompt is invisible in fullscreen mode.
|
||||
(exwm-layout--fullscreen-p))
|
||||
(let (w1 w2)
|
||||
|
|
@ -684,7 +684,7 @@ before it."
|
|||
(interactive
|
||||
(cond
|
||||
((null current-prefix-arg)
|
||||
(unless (and (eq major-mode 'exwm-mode)
|
||||
(unless (and (derived-mode-p 'exwm-mode)
|
||||
;; The prompt is invisible in fullscreen mode.
|
||||
(exwm-layout--fullscreen-p))
|
||||
(list exwm-workspace--current
|
||||
|
|
@ -921,7 +921,7 @@ INDEX must not exceed the current number of workspaces."
|
|||
(rename-buffer (concat " " (buffer-name)))))))))))
|
||||
(when buffer-or-name
|
||||
(with-current-buffer buffer-or-name
|
||||
(if (eq major-mode 'exwm-mode)
|
||||
(if (derived-mode-p 'exwm-mode)
|
||||
;; EXWM buffer.
|
||||
(if (eq exwm--frame exwm-workspace--current)
|
||||
;; On the current workspace.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue