emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d1545e2 2/3: Remove Emacs 22 compat code from abbrev.el


From: Stefan Kangas
Subject: master d1545e2 2/3: Remove Emacs 22 compat code from abbrev.el
Date: Sat, 16 May 2020 11:45:22 -0400 (EDT)

branch: master
commit d1545e2a038651e7a5203026202189351540b7f5
Author: Stefan Kangas <address@hidden>
Commit: Stefan Kangas <address@hidden>

    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 190b350..2d61a96 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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]