unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2148: In shell mode, comint-send-input seems to cut off at 254 characters
@ 2009-02-06 16:18 Chong Yidong
  2009-02-09  1:15 ` Richard Addison-Wood
  0 siblings, 1 reply; 10+ messages in thread
From: Chong Yidong @ 2009-02-06 16:18 UTC (permalink / raw)
  To: Richard Addison-Wood; +Cc: 2148

> I attempted to do this command in shell mode:
> echo
> _234567_10....
> The immediate output was:
> 0_23456_260: Command not found.
> but when I hit enter again without typing anything else, I got:
> _234567_10_234567....
> So the first 254 characters I typed got held back, and the additional
> 11 characters were sent to the inferior shell.  Further, the held back
> characters were then sent when I pressed enter again.
>
>In GNU Emacs 22.3.1 (x86_64-unknown-linux-gnu)

I can't reproduce this, on either 22.3.1 or Emacs 23.  Could you see if
the bug is present in the Emacs 23 pretest?  You can find the pretest
tarball at

 http://alpha.gnu.org/gnu/emacs/pretest/

Thanks.






^ permalink raw reply	[flat|nested] 10+ messages in thread
* bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters
@ 2009-04-07  4:48 Chong Yidong
  2009-04-07 14:09 ` bug#2148: " Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Chong Yidong @ 2009-04-07  4:48 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 2148

> [in shell mode]
> /bin/tcsh -f
> set filec
> echo [very long line]
>
> I get the strange behaviour I described before.
>
> So, in /bin/tcsh, one of the things that 'set filec' turns on is to use 
> control-D to show a list of what matches the prefix of the immediately 
> preceding word.
>
> It appears that 'send_process(proc, buf, len, object)' in process.c will 
> determine that it should send a maximum of 254 characters and will send 
> '\004' at each 254 character interval.
>
> It still seems strange to me that emacs would have this behaviour.  Is 
> that really how it should be done?  I wouldn't think that I would be the 
> only user who would be using /bin/tcsh with 'set filec'.

The ^D is sent in process.c:5781.  If we are splitting a string into
chunks for sending to the process, Emacs puts in an EOF (C-d) to "force
it through".

I can't think of any fix, off the top of my head.  Stefan, can you?  If
not, we could simply document this limitation in PROBLEMS.






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-10-22  1:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-06 16:18 bug#2148: In shell mode, comint-send-input seems to cut off at 254 characters Chong Yidong
2009-02-09  1:15 ` Richard Addison-Wood
2009-02-10  0:11   ` Richard M Stallman
  -- strict thread matches above, loose matches on Subject: below --
2009-04-07  4:48 bug#2148: " Chong Yidong
2009-04-07 14:09 ` bug#2148: " Stefan Monnier
2009-04-07 14:22   ` Chong Yidong
2009-04-07 15:47     ` Stefan Monnier
2009-04-08 18:33   ` Richard M Stallman
2009-02-02  3:20     ` Richard Addison-Wood
2014-10-19 14:18       ` Dorish Apira
2014-10-22  1:11         ` Alexis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).