unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 55579@debbugs.gnu.org
Subject: bug#55579: 29.0.50; Abbrevs not saved on exit anymore
Date: Tue, 24 May 2022 21:42:58 +0300	[thread overview]
Message-ID: <86fskzszr1.fsf@mail.linkov.net> (raw)
In-Reply-To: <865ylxwqks.fsf@mail.linkov.net> (Juri Linkov's message of "Sun,  22 May 2022 20:10:43 +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)))))





  parent reply	other threads:[~2022-05-24 18:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-22 17:10 bug#55579: 29.0.50; Abbrevs not saved on exit anymore Juri Linkov
2022-05-23  7:46 ` Lars Ingebrigtsen
2022-05-24 18:42 ` Juri Linkov [this message]
2022-05-24 19:17   ` Lars Ingebrigtsen
2022-05-24 19:27   ` Eli Zaretskii
2022-05-25  5:51     ` Andreas Röhler
2022-05-25  6:37     ` Juri Linkov
2022-05-25 13:21       ` Eli Zaretskii
2022-05-25 17:34         ` Juri Linkov
2022-05-25 12:10     ` Lars Ingebrigtsen
2022-05-25 13:54       ` Eli Zaretskii
2022-05-27 10:21         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86fskzszr1.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=55579@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).