From 44e3a693da7f5dcc8ebf26ac9e5d46c55433f479 Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 27 Mar 2024 01:03:49 +0800 Subject: [PATCH] Avoid failing to entirely overwrite abbrev file This can happen when the current buffer is smaller than the existing content when a numerical APPEND argument to write-region. --- config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.org b/config.org index 5371f75..1a72938 100644 --- a/config.org +++ b/config.org @@ -4310,7 +4310,7 @@ Also set it as a parent of `global-abbrev-table'." (setq coding-system-for-write 'utf-8-emacs)) (goto-char (point-min)) (insert (format ";;-*-coding: %s;-*-\n\n" coding-system-for-write)) - (write-region nil nil autocorrect-abbrev-file 0))) + (write-region nil nil autocorrect-abbrev-file))) (setq autocorrect-abbrev-table--saved-version (abbrev-table-get autocorrect-abbrev-table :abbrev-table-modiff))))