Subject: Re: bug#21612: 24.5; Configuration variable to delete auto-save file when intentionally killing buffer

From: Eli Zaretskii <[email-masked]>
Date: Wed, 18 Aug 2021 19:44:38 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked]
> Date: Wed, 18 Aug 2021 18:41:36 +0200
> 
> Under which conditions will it delete anything?  Hm...  well, I guess if
> you set the buffer to non-modified manually and then kills it, it'll
> delete the auto-save file?

Yes.  Or any other command that resets the modified status without
also deleting the auto-save file.