GNU bug report logs - #2148
In shell mode, comint-send-input seems to cut off at 254 characters

Previous Next

Package: emacs;

Reported by: Richard Addison-Wood <richard <at> wetafx.co.nz>

Date: Mon, 2 Feb 2009 03:30:02 UTC

Severity: normal

Fixed in version 24.5

Done: Alan J Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


Message #49 received at 2148 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Richard M Stallman <rms <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 2148 <at> debbugs.gnu.org
Cc: cyd <at> stupidchicken.com, 2148 <at> debbugs.gnu.org
Subject: Re: bug#2148: In shell mode,
	comint-send-input seems to cut off at 254 characters
Date: Wed, 08 Apr 2009 14:33:45 -0400
    The obvious fix is to not add this ^D.  At least I could never
    understand what it was supposed to do ("force it though"?  what does
    that mean?).

The problem is that the subprogram is reading from its tty with line
editing, so it won't receive any input until Emacs "types" one of the
few characters that says "give the input to the program".  Until that
occurs, theoretically Emacs could get rid of the pending input by
typing DEL or Backspace or C-u or C-w.

If the system's line-editing buffer gets full, everything hangs.  The
subprogram waits for a complete input line, but Emacs can't finish the
line because it's waiting for space to appear in that buffer (and
anyway the buffer has no room for more).

At least this is what was happening at the time I implemented that code.

If emacs_set_tty turns off the line editing, or turns off the
characters that could cancel input, it would be proper for the kernel
to give the characters to the subprogram right away.  Then the buffer
would never get full.  We could suggest this change in Linux.




This bug report was last modified 9 years and 215 days ago.

Previous Next


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