help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Replacement for string-as-unibyte-function


From: Eli Zaretskii
Subject: Re: Replacement for string-as-unibyte-function
Date: Mon, 01 Feb 2021 19:05:06 +0200

> Date: Mon, 1 Feb 2021 08:33:52 -0800
> From: Joe Riel <jriel@maplesoft.com>
> CC: <help-gnu-emacs@gnu.org>
> 
>  (make-network-process
>                 :name "mds"
>                 :family 'ipv4
>                 :service mds-port
>                 :sentinel 'mds-sentinel
>                 :filter 'mds-filter
>                 :server 't)
> 
> That is done because the server handles multiple clients, so the filter
> function routes the data to the appropriate buffer.  It isn't clear to
> me whether using :coding then has an effect; I haven't seen it.
> 
> I tried setting up each client buffer with
> 
>     (with-current-buffer buf (set-buffer-multibyte nil))
> 
> and, in the filter function, just calling
> 
>     (insert string)

With or without the :coding attribute?  I guess without, which is why
it didn't work.

Also, make sure the above is run before the filter function is called
the first time.



reply via email to

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