1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00

(detect-coding-with-priority): Call

update-coding-systems-internal before detect-coding-region.
This commit is contained in:
Kenichi Handa 2005-03-26 02:06:50 +00:00
parent 835da4eea0
commit d49a52e4dd

View File

@ -327,6 +327,7 @@ coding systems ordered by priority."
(mapc (function (lambda (x) (set (car x) (cdr x))))
prio-list)
(set-coding-priority (mapcar #'car prio-list))
(update-coding-systems-internal)
(detect-coding-region ,from ,to))
;; We must restore the internal database.
(set-coding-priority coding-category-list)