From f6e277c53b37938a562a9e4729ebc4cc60982009 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 18 Feb 2022 15:41:19 +0800 Subject: eww: add a useless check * eww-conf.el (durand-eww-bookmark-jump): Check if an existing EWW buffer is a live buffer before we determine that an EWW buffer already exists. But in my experiments this does not change anything, so... --- eww-conf.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'eww-conf.el') diff --git a/eww-conf.el b/eww-conf.el index 284f2b7..1b3f76b 100644 --- a/eww-conf.el +++ b/eww-conf.el @@ -491,10 +491,12 @@ Otherwise, fetch URL and afterwards try to restore the point." (mapcar (lambda (buffer) (cond - ((provided-mode-derived-p - (buffer-local-value - 'major-mode buffer) - 'eww-mode) + ((and + (buffer-live-p buffer) + (provided-mode-derived-p + (buffer-local-value + 'major-mode buffer) + 'eww-mode)) buffer))) (buffer-list)))) buffer) -- cgit v1.2.3-18-g5258