From 10c28f2659c162f7e8590f48991b8b09cbaadd60 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 19 May 2017 02:54:31 +0200 Subject: [PATCH] feature-detect set-charset-priority (fix #66) --- core/core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core.el b/core/core.el index bbb8eea4e..4e5387c59 100644 --- a/core/core.el +++ b/core/core.el @@ -70,7 +70,8 @@ there are problems.") ;;; ;; UTF-8 as the default coding system -(set-charset-priority 'unicode) ; pretty +(when (fboundp 'set-charset-priority) + (set-charset-priority 'unicode)) ; pretty (prefer-coding-system 'utf-8) ; pretty (set-terminal-coding-system 'utf-8) ; pretty (set-keyboard-coding-system 'utf-8) ; pretty