From dac7518995e756ad7b96f276c0f26f249937d2bc Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 3 Oct 2022 02:31:21 +0100 Subject: afio: don't bail out if buffer went away --- lib/eos/jao-afio.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/eos') diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el index 0fc84e2..d022ef1 100644 --- a/lib/eos/jao-afio.el +++ b/lib/eos/jao-afio.el @@ -202,9 +202,11 @@ (let ((f (jao-afio--find-frame next))) (select-frame-set-input-focus (or f (make-frame))) (when (setq reset (or reset (not f))) - (set-frame-name (format "W%s" (or (jao-afio-frame-no next) next))))) + (set-frame-name + (format "W%s" (or (jao-afio-frame-no next) next))))) (window-configuration-to-register (jao-afio--current-config)) - (when (and (not reset) (get-register next)) (jump-to-register next)) + (when (and (not reset) (get-register next)) + (ignore-errors (jump-to-register next))) (setq reset (or reset (not (get-register next))))) (jao-afio--current-config next) (unless (eq current next) (setq jao-afio--previous-config current)) -- cgit v1.2.3