Subject: bug#25040: 24.5; setting mail-interactive to nil causes error while sending

From: [email-masked]
Date: Sun, 27 Nov 2016 10:16:54 -0500

unarchive 20211
forcemerge 20211 25040
quit

Francesco Potortì <[email-masked]> writes:
>
> I was too hasty, sorry about that.  Anyway, the problem exists, but it
> is different from what I have told.  0 can be put back there.
>
> Apparently this change at the end of the functions fixes the bug:
>
> 1302,1305c1302,1305
> <       (if (and (bufferp errbuf)
> <                (not error))
> <           (kill-buffer errbuf)
> <         (switch-to-buffer-other-window errbuf)))))
> ---
>>       (when (bufferp errbuf)
>> 	(if (not error)
>> 	    (kill-buffer errbuf)
>> 	  (switch-to-buffer-other-window errbuf))))))

Ah, this was fixed in 25.1, where the function ends with

    (when (buffer-live-p errbuf)
      (if error
          (switch-to-buffer-other-window errbuf)
        (kill-buffer errbuf)))