From d1545e2a038651e7a5203026202189351540b7f5 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 16 May 2020 17:02:18 +0200 Subject: [PATCH] Remove Emacs 22 compat code from abbrev.el * lisp/abbrev.el (write-abbrev-file): Remove Emacs 22 compatibility code. --- lisp/abbrev.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 190b3504fa7..2d61a96010e 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el @@ -255,11 +255,7 @@ have been saved." (if (abbrev--table-symbols table) (insert-abbrev-table-description table nil))) (when (unencodable-char-position (point-min) (point-max) 'utf-8) - (setq coding-system-for-write - (if (> emacs-major-version 24) - 'utf-8-emacs - ;; For compatibility with Emacs 22 (See Bug#8308) - 'emacs-mule))) + (setq coding-system-for-write 'utf-8-emacs)) (goto-char (point-min)) (insert (format ";;-*-coding: %s;-*-\n" coding-system-for-write)) (write-region nil nil file nil (and (not verbose) 0))))) -- 2.39.5