Fix byte-compile warnings

This commit is contained in:
Shohei YOSHIDA 2021-12-25 22:55:32 +09:00
parent ebe6f50be2
commit f17263cac1
No known key found for this signature in database
GPG key ID: C9A1BB11BB940CF2

View file

@ -220,7 +220,7 @@ If MOVE is t, move the perspective instead."
(error "Perspective with name \"%s\" already exists on the target workspace" persp-name)) (error "Perspective with name \"%s\" already exists on the target workspace" persp-name))
(with-selected-frame target-workspace (with-selected-frame target-workspace
(with-perspective persp-name (with-perspective persp-name
(mapcar #'persp-add-buffer buffers) (mapc #'persp-add-buffer buffers)
(burly-open-url url)) (burly-open-url url))
(persp-switch persp-name) (persp-switch persp-name)
(persp-update-modestring)) (persp-update-modestring))
@ -367,8 +367,7 @@ e.g. like this:
((or \"Firefox\" \"Nightly\") (perspective-exwm-assign-window ((or \"Firefox\" \"Nightly\") (perspective-exwm-assign-window
:workspace-index 2 :workspace-index 2
:persp-name \"browser\"))))" :persp-name \"browser\"))))"
(let ((buffer-name (buffer-name)) (let ((buffer (current-buffer)))
(buffer (current-buffer)))
(when (and workspace-index (not (= workspace-index exwm-workspace-current-index))) (when (and workspace-index (not (= workspace-index exwm-workspace-current-index)))
(exwm-workspace-move-window workspace-index)) (exwm-workspace-move-window workspace-index))
(when persp-name (when persp-name