Subject: bug#39612: 26.3; rmail-summary-delete-forward: Wrong type argument: number-or-marker-p, nil

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 27 Oct 2020 18:55:18 +0100

Ed Sabol <[email-masked]> writes:

> I kept getting the error "Wrong type argument: number-or-marker-p, nil" if I
> tried to delete a message immediate after retrieving new messages. I finally
> figured out a solution. In `rmail-summary-delete-forward', please change:
>
>       (with-current-buffer rmail-buffer
> 	(rmail-delete-message)
> 	(setq del-msg rmail-current-message))
>
> to
>
>       (with-current-buffer rmail-buffer
> 	(setq del-msg rmail-current-message)
> 	(rmail-delete-message))

OK, that seems like a harmless enough change, even if I'm not an rmail
user, so I've applied it to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no