emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs-diffs Digest, Vol 2, Issue 28


From: Kim F. Storm
Subject: Re: Emacs-diffs Digest, Vol 2, Issue 28
Date: 28 Jan 2003 13:35:40 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Kenichi Handa <address@hidden> writes:

> I think it is better to keep extrapolating the behaviour of
> process reading/sending from file reading/writing.

I agree.

> For a filter, although we don't have a function something
> like string-from-file, the most resembling code will be
> this.
> 
> (with-temp-buffer
>   (insert-file-contents FILE)
>   (buffer-string))
> 
> A string given to a process filter must be the same as the
> result of that code, which means that
> default-enable-multibyte-characters decides the
> multibyteness, and if it is nil, character conversion except
> for end-of-line conversion is suppressed.
> 
> The only question is when to check
> default-enable-multibyte-characters.  When a process is
> created, or just before calling a filter?  I think the
> former is more like file I/O.  And it may be ok to have a
> function set-process-filter-multibyte which can change the
> multibyteness of a string to a filter on the way.

Good points.  Also, there could be a new `:multibyte BOOL' argument to
make-network-process to initialize the filter multibyteness of the new
process; specifying this would override the setting of
default-enable-multibyte-characters.


> 
> Or, was the intention of set-process-multibyte actually
> set-process-filter-multibyte?

At least, that was the problem I was looking at when I suggested it,
so yes.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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