GNU bug report logs - #64554
27.1; comint-mode cuts input after 4095 characters

Previous Next

Package: emacs;

Reported by: Jens Thiele <karme <at> karme.de>

Date: Mon, 10 Jul 2023 13:07:01 UTC

Severity: normal

Found in version 27.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jens Thiele <karme <at> karme.de>
Cc: 64554 <at> debbugs.gnu.org
Subject: bug#64554: 27.1; comint-mode cuts input after 4095 characters
Date: Mon, 10 Jul 2023 16:24:45 +0300
> From: Jens Thiele <karme <at> karme.de>
> Date: Mon, 10 Jul 2023 11:37:38 +0200
> 
> I see an annoying bug with comint-mode where lines are cut off after
> 4095 characters.
> 
> How to reproduce:
> start comint-mode with cat:
> M-: (switch-to-buffer (make-comint "cat" "cat"))
> insert 10000 u's
> C-u 10000 u RET
> and get only 4095 u's back in return (where of course 10000 should be returned)

Set process-connection-type to nil if you want to send more than 4KB
to a process.  AFAIR, this is a fundamental limitation of PTYs, which
are used by default for communicating with async subprocesses.
Setting process-connection-type to nil uses pipes instead.

See

  https://unix.stackexchange.com/questions/643777/is-there-any-limit-on-line-length-when-pasting-to-a-terminal-in-linux




This bug report was last modified 1 year and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.