* bug#6482: 24.0.50; emacs cannot deal with long lines in compilation or shell
@ 2010-06-20 23:26 jidanni
2010-06-26 3:24 ` bug#6482: 6482 Geoff Gole
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: jidanni @ 2010-06-20 23:26 UTC (permalink / raw)
To: 6482; +Cc: rfrancoise
$ emacs -Q -f shell
$ M='http://www.couchsurfing.org/find_cities.html?&city_name=c&state_id=3420&country_id=237&state_id=3424'
$ GET "$M"|grep -i hua #excuse me but I do not see a "hua" below
</TD></TR></TABLE></DIV>
$ GET "$M"|grep -i hua|wc #oh, emacs cannot deal with long lines
1 198 7294
Also same problem with M-x compile with this
$ cat Makefile
F=http://www.couchsurfing.org/find_cities.html?&city_name=c&state_id=3420&country_id=237&state_id=3424
city_numbers:
lynx -source '$F'|grep hua
In GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
of 2010-06-20 on elegiac, modified by Debian
(emacs-snapshot package, version 1:20100619-2)
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#6482: 6482
2010-06-20 23:26 bug#6482: 24.0.50; emacs cannot deal with long lines in compilation or shell jidanni
@ 2010-06-26 3:24 ` Geoff Gole
2010-06-26 4:29 ` bug#6482: ^M zaps results jidanni
2010-06-26 6:15 ` jidanni
2 siblings, 0 replies; 5+ messages in thread
From: Geoff Gole @ 2010-06-26 3:24 UTC (permalink / raw)
To: 6482, jidanni
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#6482: ^M zaps results
2010-06-20 23:26 bug#6482: 24.0.50; emacs cannot deal with long lines in compilation or shell jidanni
2010-06-26 3:24 ` bug#6482: 6482 Geoff Gole
@ 2010-06-26 4:29 ` jidanni
2010-06-26 5:29 ` Geoff Gole
2010-06-26 6:15 ` jidanni
2 siblings, 1 reply; 5+ messages in thread
From: jidanni @ 2010-06-26 4:29 UTC (permalink / raw)
To: geoffgole; +Cc: 6482
GG> Pretty strange, but nothing to do with emacs.
All I know is for those tests of mine, at most there was only a split
second where we could see the thousands of characters. Whereas outside
of emacs in bash in xterm, there they were left pleasingly sitting on
the screen.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#6482: ^M zaps results
2010-06-26 4:29 ` bug#6482: ^M zaps results jidanni
@ 2010-06-26 5:29 ` Geoff Gole
0 siblings, 0 replies; 5+ messages in thread
From: Geoff Gole @ 2010-06-26 5:29 UTC (permalink / raw)
To: jidanni; +Cc: 6482
>
> All I know is for those tests of mine, at most there was only a split
> second where we could see the thousands of characters. Whereas outside
> of emacs in bash in xterm, there they were left pleasingly sitting on
> the screen.
>
No, what the xterm showed you was junk with part of the text
overwritten because of the ^M. You just didn't notice because the
overwritten text didn't happen to be the bit you were interested in.
You can't expect to cleanly view text that contains control characters
at a shell prompt. Pipe it to less or something.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#6482: ^M zaps results
2010-06-20 23:26 bug#6482: 24.0.50; emacs cannot deal with long lines in compilation or shell jidanni
2010-06-26 3:24 ` bug#6482: 6482 Geoff Gole
2010-06-26 4:29 ` bug#6482: ^M zaps results jidanni
@ 2010-06-26 6:15 ` jidanni
2 siblings, 0 replies; 5+ messages in thread
From: jidanni @ 2010-06-26 6:15 UTC (permalink / raw)
To: geoffgole; +Cc: 6482
GG> You can't expect to cleanly view text that contains control characters
GG> at a shell prompt. Pipe it to less or something.
OK, you win.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-06-26 6:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-20 23:26 bug#6482: 24.0.50; emacs cannot deal with long lines in compilation or shell jidanni
2010-06-26 3:24 ` bug#6482: 6482 Geoff Gole
2010-06-26 4:29 ` bug#6482: ^M zaps results jidanni
2010-06-26 5:29 ` Geoff Gole
2010-06-26 6:15 ` jidanni
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.