mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(prefer-coding-system): Call set-coding-priority, so that the internal
array of priorities is also updated.
This commit is contained in:
parent
26d8704095
commit
812cad8048
@ -298,11 +298,9 @@ startup."
|
||||
(error "Can't prefer the coding system `%s'" coding-system))
|
||||
(set coding-category (or base coding-system))
|
||||
(update-coding-systems-internal)
|
||||
(if (not (eq coding-category (car coding-category-list)))
|
||||
(or (eq coding-category (car coding-category-list))
|
||||
;; We must change the order.
|
||||
(setq coding-category-list
|
||||
(cons coding-category
|
||||
(delq coding-category coding-category-list))))
|
||||
(set-coding-priority (list coding-category)))
|
||||
(if (and base (interactive-p))
|
||||
(message "Highest priority is set to %s (base of %s)"
|
||||
base coding-system))
|
||||
|
Loading…
Reference in New Issue
Block a user