Project

General

Profile

Bug #945

Emacs UI: comint buffer silently truncates(?) long lines when sending

Added by John Abbott over 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
EmacsUI
Target version:
Start date:
12 Oct 2016
Due date:
% Done:

100%

Estimated time:
0.70 h
Spent time:

Description

I sent a long line to an interactive cocoa5 inside emacs (v.24.5).
CoCoA saw only the first part of the input line; it was apparently truncated at about 4096 chars.

This seems to be a known problem with emacs; can we find a reasonable solution?


Related issues

Related to CoCoA-5 - Bug #433: EMACS UI: trouble with sending a long lineClosed2014-02-06

History

#1 Updated by John Abbott over 7 years ago

  • Related to Bug #433: EMACS UI: trouble with sending a long line added

#2 Updated by John Abbott over 7 years ago

Note that issue #433 dealt with the problem of sending long lines from a cocoa5-mode buffer to the interactive CoCoA session. This issue is very similar, but somehow different.

I was in an interactive cocoa5 session, and introduced a long line via copy-and-paste (output from another program).
The line was of the form L := [0, 0, 0, .... 0]; though not all the entries were zero. CoCoA-5 received just the first part of the list, and then issued a continuation prompt because it had not yet seen the end of the list.

The problem appears to be emacs specific: if I send the same input line to cocoa5 running in a terminal then it all works fine.

#3 Updated by John Abbott over 7 years ago

One easy way to avoid the problem is to paste the line into a buffer in cocoa5-mode (e.g. associated to a CoCoA-5 source file), and then send the line from the buffer. Issue #433 arranges for long lines to be sent by calling SourceRegion.

To reproduce the original problem print the output of [0 | i in 1..2000] to a file, then append a semicolon ; to the end. Now try copying-and-pasting that into as input to an interactive CoCoA-5 session inside emacs.

#4 Updated by John Abbott over 7 years ago

The following URL may help:

http://osdir.com/ml/emacs-bug-tracker-gnu/2016-08/msg00144.html

#5 Updated by John Abbott over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

#6 Updated by John Abbott about 4 years ago

  • Assignee set to John Abbott
  • Target version changed from CoCoA-5.?.? to CoCoA-5.3.0
  • % Done changed from 10 to 100
  • Estimated time set to 0.70 h

This has already been done; see also #672.

#7 Updated by John Abbott about 4 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF