From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#55579: 29.0.50; Abbrevs not saved on exit anymore Date: Tue, 24 May 2022 21:42:58 +0300 Organization: LINKOV.NET Message-ID: <86fskzszr1.fsf@mail.linkov.net> References: <865ylxwqks.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33086"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) To: 55579@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 24 21:16:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nta0q-0008TR-D5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 May 2022 21:16:12 +0200 Original-Received: from localhost ([::1]:40518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nta0o-0007fw-TB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 May 2022 15:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntZzi-0007eR-Kw for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 15:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntZzi-0000b6-CA for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 15:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntZzi-00055V-6n for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 15:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 May 2022 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55579 X-GNU-PR-Package: emacs Original-Received: via spool by 55579-submit@debbugs.gnu.org id=B55579.165341967119483 (code B ref 55579); Tue, 24 May 2022 19:15:02 +0000 Original-Received: (at 55579) by debbugs.gnu.org; 24 May 2022 19:14:31 +0000 Original-Received: from localhost ([127.0.0.1]:53440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntZzD-00054A-F6 for submit@debbugs.gnu.org; Tue, 24 May 2022 15:14:31 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:53225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntZzB-00053v-Kc for 55579@debbugs.gnu.org; Tue, 24 May 2022 15:14:30 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 256A6100003 for <55579@debbugs.gnu.org>; Tue, 24 May 2022 19:14:21 +0000 (UTC) In-Reply-To: <865ylxwqks.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 22 May 2022 20:10:43 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233024 Archived-At: > 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)))))