GNU bug report logs - #6482
24.0.50; emacs cannot deal with long lines in compilation or shell

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 20 Jun 2010 23:27:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Geoff Gole <geoffgole <at> gmail.com>
To: 6482 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: bug#6482: 6482
Date: Sat, 26 Jun 2010 11:24:16 +0800
This has nothing to do with either line length or emacs. The html in
question contains a ^M near the end of that line, and it causes the
shell to behave a little strangely.

To illustrate, try the following in an xterm or something. Use C-v RET
to insert the ^M.

  $ grep abc <<EOF
  > abc^Mdef
  > EOF
  def

Now a longer line with a ^M towards the end:

  $ grep abc <<EOF
  > asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfsadfasdfsadfsadfsadfsadfasdfsadfsadfasdfasdfasdfsadfabc^Mdef
  > EOF
  deffasdfasdfasdfasdfasdfasdfasdfasdfasdfsadfasdfsadfsadfsadfsadfasdfsadfsadfasdfasdfasdfsadfabc

Pretty strange, but nothing to do with emacs. An additional wrinkle is
that in M-x shell C-q C-m won't produce the same behaviour, the shell
seems to see it as a newline. Use a file containing a ^M if you test
this in M-x shell.




This bug report was last modified 14 years and 155 days ago.

Previous Next


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