* Removing set-unibyte-charset
@ 2008-03-02 22:00 Stefan Monnier
2008-03-03 12:59 ` Kenichi Handa
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-03-02 22:00 UTC (permalink / raw)
To: emacs-devel
I'd like to remove set-unibyte-charset.
Any objection?
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Removing set-unibyte-charset
2008-03-02 22:00 Removing set-unibyte-charset Stefan Monnier
@ 2008-03-03 12:59 ` Kenichi Handa
2008-03-03 15:07 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: Kenichi Handa @ 2008-03-03 12:59 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
In article <jwvablgu6pw.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I'd like to remove set-unibyte-charset.
> Any objection?
I don't object. But, why now? Are you going to change the
behaviour of unibyte<->multibyte conversion?
---
Kenichi Handa
handa@ni.aist.go.jp
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Removing set-unibyte-charset
2008-03-03 12:59 ` Kenichi Handa
@ 2008-03-03 15:07 ` Stefan Monnier
2008-03-04 12:26 ` Kenichi Handa
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-03-03 15:07 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
>> I'd like to remove set-unibyte-charset.
>> Any objection?
> I don't object. But, why now?
The switch to 23.1 seems like a good time for it.
> Are you going to change the
> behaviour of unibyte<->multibyte conversion?
Clearly that will change it, indeed.
E.g. string-make-multibyte == string-to-multibyte after that removal,
for example.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Removing set-unibyte-charset
2008-03-03 15:07 ` Stefan Monnier
@ 2008-03-04 12:26 ` Kenichi Handa
2008-03-04 16:38 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: Kenichi Handa @ 2008-03-04 12:26 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
In article <jwvablfn8yb.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > Are you going to change the
> > behaviour of unibyte<->multibyte conversion?
> Clearly that will change it, indeed.
> E.g. string-make-multibyte == string-to-multibyte after that removal,
> for example.
Ok, I see. It's a big overhaul. :-)
---
Kenichi Handa
handa@ni.aist.go.jp
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Removing set-unibyte-charset
2008-03-04 12:26 ` Kenichi Handa
@ 2008-03-04 16:38 ` Stefan Monnier
2008-03-05 1:20 ` Kenichi Handa
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-03-04 16:38 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
>> > Are you going to change the
>> > behaviour of unibyte<->multibyte conversion?
>> Clearly that will change it, indeed.
>> E.g. string-make-multibyte == string-to-multibyte after that removal,
>> for example.
> Ok, I see. It's a big overhaul. :-)
What do you mean by a big overhaul? The first step is nothing more than
removing Fset_unibyte_charset (and removing the few calls to it).
After that, many more changes can be applied, but these are nothing more
than optimizations (e.g. remove unibyte-charset since it's constant,
...).
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Removing set-unibyte-charset
2008-03-04 16:38 ` Stefan Monnier
@ 2008-03-05 1:20 ` Kenichi Handa
2008-03-05 2:04 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: Kenichi Handa @ 2008-03-05 1:20 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
In article <jwv4pbmbgc2.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> > Are you going to change the
>>> > behaviour of unibyte<->multibyte conversion?
>>> Clearly that will change it, indeed.
>>> E.g. string-make-multibyte == string-to-multibyte after that removal,
>>> for example.
> > Ok, I see. It's a big overhaul. :-)
> What do you mean by a big overhaul? The first step is nothing more than
> removing Fset_unibyte_charset (and removing the few calls to it).
Yes, but...
> After that, many more changes can be applied, but these are nothing more
> than optimizations (e.g. remove unibyte-charset since it's constant,
> ...).
I've thought that you are going to change all operations
that convert unibyte char/string/buffer-contents to
multibyte (insert, concat, search, re-search, etc).
Currently they do "make"-conversion; i.e. convert each
unibyte character to multibyte by using unibyte-charset.
Changing all of them to "to"-conversion is a big (but not
that difficult) work, I think.
---
Kenichi Handa
handa@ni.aist.go.jp
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Removing set-unibyte-charset
2008-03-05 1:20 ` Kenichi Handa
@ 2008-03-05 2:04 ` Stefan Monnier
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2008-03-05 2:04 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
>> After that, many more changes can be applied, but these are nothing more
>> than optimizations (e.g. remove unibyte-charset since it's constant,
>> ...).
> I've thought that you are going to change all operations
> that convert unibyte char/string/buffer-contents to
> multibyte (insert, concat, search, re-search, etc).
> Currently they do "make"-conversion; i.e. convert each
> unibyte character to multibyte by using unibyte-charset.
> Changing all of them to "to"-conversion is a big (but not
> that difficult) work, I think.
It's a tiny amount of work: just removing all calls to
set-unibyte-charset does the trick. Admittedly, the subsequent
optimizations that become possible represent a fairly large amount of
changes, but as you say it's not difficult, and it can be done at
a leisurely pace.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-05 2:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-02 22:00 Removing set-unibyte-charset Stefan Monnier
2008-03-03 12:59 ` Kenichi Handa
2008-03-03 15:07 ` Stefan Monnier
2008-03-04 12:26 ` Kenichi Handa
2008-03-04 16:38 ` Stefan Monnier
2008-03-05 1:20 ` Kenichi Handa
2008-03-05 2:04 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.