* Preload encoded-kb on MS-Windows
@ 2006-05-13 13:39 Eli Zaretskii
2006-05-14 2:44 ` Stefan Monnier
0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2006-05-13 13:39 UTC (permalink / raw)
On MS-Windows, the startup code always causes encoded-kb to be loaded,
because of this snippet from mule-cmds.el
;; 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?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
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
0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2006-05-14 2:44 UTC (permalink / raw)
Cc: emacs-devel
> ;; 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-14 2:44 ` Stefan Monnier
@ 2006-05-18 1:20 ` Kenichi Handa
2006-05-18 3:40 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2006-05-18 1:20 UTC (permalink / raw)
Cc: eliz, emacs-devel
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-18 1:20 ` Kenichi Handa
@ 2006-05-18 3:40 ` Eli Zaretskii
2006-05-18 3:55 ` Kenichi Handa
0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2006-05-18 3:40 UTC (permalink / raw)
Cc: monnier, emacs-devel
> From: Kenichi Handa <handa@m17n.org>
> CC: eliz@gnu.org, emacs-devel@gnu.org
> Date: Thu, 18 May 2006 10:20:38 +0900
>
> 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.
Do you agree that on MS-Windows encoded-kb should be preloaded?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-18 3:40 ` Eli Zaretskii
@ 2006-05-18 3:55 ` Kenichi Handa
2006-05-18 18:52 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2006-05-18 3:55 UTC (permalink / raw)
Cc: monnier, emacs-devel
In article <u4pzo2e6t.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
>> From: Kenichi Handa <handa@m17n.org>
>> CC: eliz@gnu.org, emacs-devel@gnu.org
>> Date: Thu, 18 May 2006 10:20:38 +0900
>>
>> 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.
> Do you agree that on MS-Windows encoded-kb should be preloaded?
I agree if it is the policy to preload everything that is
always loaded at startup time.
But, as a developper, I see a merit in not preloading such
files because then the debugging/testing of them gets a
little bit easier (we don't have to dump Emacs).
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-18 3:55 ` Kenichi Handa
@ 2006-05-18 18:52 ` Eli Zaretskii
2006-05-19 0:33 ` Kenichi Handa
2006-05-19 15:10 ` Richard Stallman
0 siblings, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2006-05-18 18:52 UTC (permalink / raw)
Cc: monnier, emacs-devel
> From: Kenichi Handa <handa@m17n.org>
> CC: monnier@iro.umontreal.ca, emacs-devel@gnu.org
> Date: Thu, 18 May 2006 12:55:16 +0900
>
> In article <u4pzo2e6t.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Kenichi Handa <handa@m17n.org>
> >> CC: eliz@gnu.org, emacs-devel@gnu.org
> >> Date: Thu, 18 May 2006 10:20:38 +0900
> >>
> >> 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.
>
> > Do you agree that on MS-Windows encoded-kb should be preloaded?
>
> I agree if it is the policy to preload everything that is
> always loaded at startup time.
I thought this was the policy, because it makes Emacs start faster.
Richard, is it true that this is the policy?
> But, as a developper, I see a merit in not preloading such
> files because then the debugging/testing of them gets a
> little bit easier (we don't have to dump Emacs).
Well, we have gobs of files preloaded already, so one more won't hurt
too much, I think. But I'll defer to Richard's decision.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-18 18:52 ` Eli Zaretskii
@ 2006-05-19 0:33 ` Kenichi Handa
2006-05-19 10:17 ` Eli Zaretskii
2006-05-19 15:10 ` Richard Stallman
1 sibling, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2006-05-19 0:33 UTC (permalink / raw)
Cc: monnier, emacs-devel
In article <u3bf72mje.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
>> But, as a developper, I see a merit in not preloading such
>> files because then the debugging/testing of them gets a
>> little bit easier (we don't have to dump Emacs).
> Well, we have gobs of files preloaded already, so one more won't hurt
> too much, I think. But I'll defer to Richard's decision.
It seems that you misunderstand my point above. When *.el
is not preloaded, we can test it by modifying and
byte-compiling that file and just restart Emacs. If *.el is
preloaded, we need an additional step; building Emacs.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-19 0:33 ` Kenichi Handa
@ 2006-05-19 10:17 ` Eli Zaretskii
2006-05-19 10:51 ` Kenichi Handa
0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2006-05-19 10:17 UTC (permalink / raw)
Cc: monnier, emacs-devel
> From: Kenichi Handa <handa@m17n.org>
> CC: monnier@iro.umontreal.ca, emacs-devel@gnu.org
> Date: Fri, 19 May 2006 09:33:21 +0900
>
> In article <u3bf72mje.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
>
> >> But, as a developper, I see a merit in not preloading such
> >> files because then the debugging/testing of them gets a
> >> little bit easier (we don't have to dump Emacs).
>
> > Well, we have gobs of files preloaded already, so one more won't hurt
> > too much, I think. But I'll defer to Richard's decision.
>
> It seems that you misunderstand my point above. When *.el
> is not preloaded, we can test it by modifying and
> byte-compiling that file and just restart Emacs. If *.el is
> preloaded, we need an additional step; building Emacs.
I did understand what you were saying. My response to that is that we
already have that situation with many other files: e.g., when we need
to debug files.el, we need to rebuild Emacs.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-19 10:17 ` Eli Zaretskii
@ 2006-05-19 10:51 ` Kenichi Handa
0 siblings, 0 replies; 10+ messages in thread
From: Kenichi Handa @ 2006-05-19 10:51 UTC (permalink / raw)
Cc: monnier, emacs-devel
In article <uk68i1fpb.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
> I did understand what you were saying. My response to that is that we
> already have that situation with many other files: e.g., when we need
> to debug files.el, we need to rebuild Emacs.
Oops, sorry for the misunderstanding on my side.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Preload encoded-kb on MS-Windows
2006-05-18 18:52 ` Eli Zaretskii
2006-05-19 0:33 ` Kenichi Handa
@ 2006-05-19 15:10 ` Richard Stallman
1 sibling, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2006-05-19 15:10 UTC (permalink / raw)
Cc: emacs-devel, monnier, handa
> I agree if it is the policy to preload everything that is
> always loaded at startup time.
I thought this was the policy, because it makes Emacs start faster.
Richard, is it true that this is the policy?
Yes, unless there is some specific pressing reason to do otherwise.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-05-19 15:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).