[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55579: 29.0.50; Abbrevs not saved on exit anymore
From: |
Juri Linkov |
Subject: |
bug#55579: 29.0.50; Abbrevs not saved on exit anymore |
Date: |
Tue, 24 May 2022 21:42:58 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
> 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)))))