From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan J Third Newsgroups: gmane.emacs.bugs Subject: bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters Date: Sun, 10 Jan 2016 22:34:57 +0000 Message-ID: References: <87bpr9ul08.fsf@cyd.mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452465382 16587 80.91.229.3 (10 Jan 2016 22:36:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jan 2016 22:36:22 +0000 (UTC) Cc: Chong Yidong , Stefan Monnier To: 2148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 10 23:36:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aIOap-0003JG-5u for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 23:36:11 +0100 Original-Received: from localhost ([::1]:49941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIOao-00007g-3z for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 17:36:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIOak-00007b-EB for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 17:36:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIOag-0004kb-2v for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 17:36:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIOaf-0004kX-Uj for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 17:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aIOaf-0007G6-IX for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 17:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan J Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2016 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 2148-submit@debbugs.gnu.org id=B2148.145246530827840 (code B ref 2148); Sun, 10 Jan 2016 22:36:01 +0000 Original-Received: (at 2148) by debbugs.gnu.org; 10 Jan 2016 22:35:08 +0000 Original-Received: from localhost ([127.0.0.1]:45778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIOZn-0007Ey-QI for submit@debbugs.gnu.org; Sun, 10 Jan 2016 17:35:07 -0500 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:37190) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIOZl-0007EO-9R for 2148@debbugs.gnu.org; Sun, 10 Jan 2016 17:35:05 -0500 Original-Received: by mail-wm0-f54.google.com with SMTP id f206so243487943wmf.0 for <2148@debbugs.gnu.org>; Sun, 10 Jan 2016 14:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=CFqWoXUwHFvixielILKZgAr7rqVs85c8SJB9R4LLEyM=; b=Ky1ONqX6A3pIoRZwgUZ+PLFXiIOHcuN+vbrnTHEmxozqadYKoGtqqOR9AoM49Q4Kt1 Z7jpdVHFdMktp0GedzMzHkX/axa4HWgs4v/zyKZphWLoH9YjB7t940ZMbsXb3Hg0xZNY 5D0RnyLIxHDBmu9Brh6ElSBEhy864Dg9x3A+/3flxMwtn8rzRFujK+ZM8VWJrUNtbwLh 98mbKE5WPLHSce3yPM47v8gYbN6CfCW7UB2YxCR8OSs7gyL+O3fFowcGH/ntL6tjhB3O faCOaf/cmRs647mxoUShQ2XRZn1mA4sPCxwXgimY5iZgE4r/bOczLNT7268nK3FZeEE5 unNg== X-Received: by 10.194.103.131 with SMTP id fw3mr116827296wjb.55.1452465299814; Sun, 10 Jan 2016 14:34:59 -0800 (PST) Original-Received: from galloway.idiocy.org (b.7.8.b.2.3.4.6.4.8.7.7.0.9.0.4.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:4090:7784:6432:b87b]) by smtp.gmail.com with ESMTPSA id v191sm8953869wme.1.2016.01.10.14.34.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jan 2016 14:34:58 -0800 (PST) In-Reply-To: <87bpr9ul08.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 07 Apr 2009 00:48:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111472 Archived-At: Chong Yidong writes: >> [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. I can't replicate this in Emacs 25 (or Emacs 24.5) on OS X, and I can't find the code described above in the source, or at least in send_process. Can someone who knows their way around better than me please confirm whether the offending code has been removed, please? -- Alan Third