From 6719b2b4aeea9c504d03dd43c812db25a0ada172 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Fri, 15 Mar 2019 20:15:25 -0400 Subject: Invoke '--remove-buffers before listing buffers "nil" has been showing up recently when I hit , presumably because 'buffer-name for a dead buffer returns 'nil. No big deal, we'll just call exwm-buffer-groups--remove-buffers before giving a list of buffers in the completing read. This *might* not be the most elegant solution, in which case I'll hopefully come up with something better later on. --- exwm-buffer-groups.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exwm-buffer-groups.el b/exwm-buffer-groups.el index a16223f..8cbaed4 100644 --- a/exwm-buffer-groups.el +++ b/exwm-buffer-groups.el @@ -84,6 +84,8 @@ workspace." (elt exwm-buffer-groups-buffers exwm-workspace-current-index))) (current-buffer (buffer-name (other-buffer (current-buffer))))) + ;; Clean up so that "nil" isn't showing up in the list. + (exwm-buffer-groups--remove-buffers) (completing-read "Switch to buffer: " buffers-in-workspace nil nil nil nil current-buffer)))) (switch-to-buffer buffer-or-name)) -- cgit v1.3