Simplify debugging and fix dynamic-scoping `eval'

* exwm-core.el (exwm-debug): New global minor mode to replace
`exwm-debug-on' and `exwm-debug-toggle'.

* exwm-manage.el (exwm-manage--get-configurations): Use
lexical-scoping `eval'.
This commit is contained in:
Chris Feng 2018-09-16 00:00:00 +00:00
parent 5903080b6e
commit 472f7cb82b
2 changed files with 7 additions and 15 deletions

View file

@ -182,7 +182,7 @@ You can still make the X windows floating afterwards."
(when (derived-mode-p 'exwm-mode)
(dolist (i exwm-manage-configurations)
(save-current-buffer
(when (eval (car i))
(when (eval (car i) t)
(cl-return-from exwm-manage--get-configurations (cdr i)))))))
(defun exwm-manage--manage-window (id)