Subject: Re: bug#39344: 28.0.50; Gnus: Selecting deleted buffer

From: Stephen Berman <[email-masked]>
Date: Wed, 29 Jan 2020 14:33:20 +0100

On Wed, 29 Jan 2020 14:25:10 +0100 Robert Pluim <[email-masked]> wrote:

>>>>>> On Wed, 29 Jan 2020 14:07:16 +0100, Stephen Berman
> <[email-masked]> said:
>     Stephen> I see this too.  The patch below appears to fix it for me, but I don't
>     Stephen> know if it's just a workaround.
>
> That canʼt be right. 'gnus-buffers' already checks 'buffer-live-p'.

Hm, odd, because when I stepped through gnus-clear-system, the error
occurred here:

   ;; Kill Gnus buffers.
   (do-auto-save t)
   (dolist (buffer (gnus-buffers))
     (with-current-buffer buffer   <===

and after adding the buffer-live-p check before that line, the error no
longer occurs.

Steve Berman