Subject: Re: bug#55579: 29.0.50; Abbrevs not saved on exit anymore

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 23 May 2022 09:46:48 +0200

Juri Linkov <[email-masked]> writes:

> After a recent change, 'C-x C-c' doesn't ask anymore to save abbrevs with:
>
>   Save abbrevs in ~/.emacs.d/abbrev_defs?
>
> It looks like the regression was caused by ce220524fcf.
> Before this change, save-buffers-kill-emacs unconditionally
> called save-some-buffers that also saves the abbrev table.
> But after the change, save-some-buffers that saves abbrevs
> is called only when files--buffers-needing-to-be-saved
> detects unsaved buffers.

Wow -- I had no idea that save-some-buffers also randomly saved abbrevs.

I've now separated that this out into a general mechanism that abbrev.el
now hooks into, while also fixing this `C-x C-c' bug.

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