[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24531: process-send-string seems to truncate lines over 4096 charact
From: |
Eli Zaretskii |
Subject: |
bug#24531: process-send-string seems to truncate lines over 4096 characters |
Date: |
Fri, 21 Jul 2023 17:18:34 +0300 |
> From: Spencer Baugh <sbaugh@janestreet.com>
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>, 24531@debbugs.gnu.org,
> 6149@debbugs.gnu.org, jidanni@jidanni.org
> Date: Fri, 21 Jul 2023 09:58:38 -0400
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > The number of applications that (a) don't need console-like behavior
> > and (b) need to send larger-than-4KB buffers to sub-processes is quite
> > small. Which is why this issue comes up only very rarely. So making
> > pipes the default will fix a very small fraction of applications, and
> > break the vast majority -- clearly a wrong balance.
>
> I see your point, but at the same time, the PTY interface on its own is
> not sufficient to make these applications work, not at all. Specialized
> modes are necessary to make M-x term (to implement a terminal) and M-x
> grep (to parse ANSI color codes) and other such programs work. Running
> things in a PTY without such specialized code doesn't give you anything,
> AFAIK, because a PTY alone is far from enough to make the Emacs end
> behave like a terminal. So such programs need to be aware and careful
> about such things anyway, and need additional infrastructure on top of
> make-process. So the default being "pty" gives such programs very
> little: it doesn't save them any complexity.
That Emacs needs to do something doesn't invalidate my point. My
point is that communications via a PTY is a necessary (though a
sufficient) condition for these features. Basically, you cannot use
pipes for any interactive feature, because pipes are buffered.
> However, what about my patch adding a warning about this to
> process-send-string? I think that is independently valuable. Right now
> we have no documentation of this problem...
This should be documented in the ELisp manual, and in more detail, not
just as a vague warning.
- bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Spencer Baugh, 2023/07/20
- bug#24531: process-send-string seems to truncate lines over 4096 characters, Stefan Monnier, 2023/07/20
- bug#24531: bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Eli Zaretskii, 2023/07/21
- bug#24531: process-send-string seems to truncate lines over 4096 characters, Spencer Baugh, 2023/07/21
- bug#24531: process-send-string seems to truncate lines over 4096 characters,
Eli Zaretskii <=
- bug#24531: bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Dmitry Gutov, 2023/07/26
- bug#24531: bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Eli Zaretskii, 2023/07/27
- bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Spencer Baugh, 2023/07/27
- bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Paul Eggert, 2023/07/27
- bug#6149: bug#24531: process-send-string seems to truncate lines over 4096 characters, Stefan Monnier, 2023/07/21