GNU bug report logs - #55579
29.0.50; Abbrevs not saved on exit anymore

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 22 May 2022 17:13:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 55579 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: 55579 <at> debbugs.gnu.org
Subject: Re: bug#55579: 29.0.50; Abbrevs not saved on exit anymore
Date: Tue, 24 May 2022 21:42:58 +0300
> Save abbrevs in ~/.emacs.d/abbrev_defs?

BTW, I noticed that ~/.emacs.d/abbrev_defs
is visited without font-locking.  Here's the fix:

diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 3ee972869b..a3b19107f7 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -264,7 +264,7 @@ write-abbrev-file
       (when (unencodable-char-position (point-min) (point-max) 'utf-8)
 	(setq coding-system-for-write 'utf-8-emacs))
       (goto-char (point-min))
-      (insert (format ";;-*-coding: %s;-*-\n" coding-system-for-write))
+      (insert (format ";; -*- coding: %s; mode: lisp-data -*-\n" coding-system-for-write))
       (write-region nil nil file nil (and (not verbose) 0)))))




This bug report was last modified 3 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.