unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Preload encoded-kb on MS-Windows
Date: Thu, 18 May 2006 10:20:38 +0900	[thread overview]
Message-ID: <E1FgXBu-0003j3-00@etlken> (raw)
In-Reply-To: <873bfds4xs.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sat, 13 May 2006 22:44:59 -0400)

In article <873bfds4xs.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> 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
handa@m17n.org

  reply	other threads:[~2006-05-18  1:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-13 13:39 Preload encoded-kb on MS-Windows Eli Zaretskii
2006-05-14  2:44 ` Stefan Monnier
2006-05-18  1:20   ` Kenichi Handa [this message]
2006-05-18  3:40     ` Eli Zaretskii
2006-05-18  3:55       ` Kenichi Handa
2006-05-18 18:52         ` Eli Zaretskii
2006-05-19  0:33           ` Kenichi Handa
2006-05-19 10:17             ` Eli Zaretskii
2006-05-19 10:51               ` Kenichi Handa
2006-05-19 15:10           ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FgXBu-0003j3-00@etlken \
    --to=handa@m17n.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).