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: Kenichi Handa
Subject: Re: Preload encoded-kb on MS-Windows
Date: Thu, 18 May 2006 10:20:38 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, Stefan Monnier <address@hidden> writes:

>> ;; 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.

It seems that you actually meant keyboard-coding-system (not
terminal-coding-system).  But, on Unix, encoded-kb is not
loaded when you run Emacs on X.

---
Kenichi Handa
address@hidden




reply via email to

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