emacs-devel
[Top][All Lists]
Advanced

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

Re: Preload encoded-kb on MS-Windows


From: Stefan Monnier
Subject: Re: Preload encoded-kb on MS-Windows
Date: Sat, 13 May 2006 22:44:59 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     ;; On Windows, override locale-coding-system,
>     ;; keyboard-coding-system with system codepage.  Note:
>     ;; selection-coding-system is already set in w32select.c.
>     (when (boundp 'w32-ansi-code-page)
>       (let ((code-page-coding (intern (format "cp%d" w32-ansi-code-page))))
>       (when (coding-system-p code-page-coding)
>         (setq locale-coding-system code-page-coding)
>         (set-keyboard-coding-system code-page-coding)
>         (set-terminal-coding-system code-page-coding))))

> This calls set-keyboard-coding-system, which in turn loads encoded-kb
> to enable Encoded Keyboard minor mode.

> I think this means we should preload encoded-kb on Windows.  Does
> anyone disagree?

Actually under Unix, unless your locale is C or English,
terminal-coding-system will most likely be set as well.
Under Mac OS X, it's always set to utf-8.
So we should probably just preload it in all cases.


        Stefan




reply via email to

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