Subject: 30.0.50; ‘edit-abbrevs’ destroys setting of :enable-function

From: Andreas Röhler <[email-masked]>
Date: Wed, 22 May 2024 10:34:19 +0200

Hi,

abbrev feature ‘:enable-function’ auto-registers here my ‘scala-cli’ 
just when opening it.
Feels pretty cool, thanks.

Unfortunately, calling ‘M-x edit-abbrevs ...’ and save destroys setting 
of :enable-function

Below the result of the last edit, which was intended to remove

("p" "(push" nil :count 0)

---

diff -b -u -r1.152 .abbrev_defs
--- .abbrev_defs    2024/05/22 07:42:36    1.152
+++ .abbrev_defs    2024/05/22 07:52:31
@@ -5473,7 +5473,6 @@
[...]
-    ("p" "(push" nil :count 0)
[...]
@@ -7622,7 +7621,7 @@
[...]
-    ("sc" "scala-cli" nil :count 14 :enable-function (lambda nil 
(window-configuration-to-register 121)))
+    ("sc" "scala-cli" nil :count 14)
[...]

---
emacs -Q
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, 
cairo version 1.16.0) of 2024-05-21