From: Kenichi Handa <handa@m17n.org>
To: Romain Francoise <romain@orebokech.com>
Cc: emacs-pretest-bug@gnu.org, christopher.ian.moore@gmail.com,
rms@gnu.org, monnier@iro.umontreal.ca
Subject: Re: carriage-return no longer works quite right in shell-mode
Date: Fri, 29 Feb 2008 20:31:48 +0900 [thread overview]
Message-ID: <E1JV3Su-0008Ul-0O@etlken.m17n.org> (raw)
In-Reply-To: <87wsoow3zx.fsf@elegiac.orebokech.com> (message from Romain Francoise on Fri, 29 Feb 2008 09:39:30 +0100)
In article <87wsoow3zx.fsf@elegiac.orebokech.com>, Romain Francoise <romain@orebokech.com> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > So it indeed, looks like a problem introduced by the unicode merge: for
> > some reason, the unicode code just sends the \r eagerly before it can
> > tell whether the next char is a \n.
> > I'll keep it in my todo list, but it may take me a little while to get
> > back to it, so if someone wants to do it before, he's welcome,
> This bug is very annoying...
> Handa-san, perhaps you have an idea about what broke this, and where
> someone could start investigating?
Sorry for not responding on this thread.
I found two problems are related.
One is that the default-process-coding-system is now set to
XXX-unix, but previously it doesn't specify eol-format
(i.e. auto-detect). comint.el changes the eol-format to
XXX-dos only if eol-format is not specifed.
The other is in the new code conversion routine as Stefan
wrote above.
I'll fix the latter bug in haste. Could someone figure out
why default-process-coding-system specifies eol-format now?
By the way, I think the way of processing CR in comint is
not good. For instance, with the follwoing program, you
can't see the tailing "times" in *shell*.
#include <stdio.h>
main() {
int i;
printf (" times");
for (i = 0; i < 10; i++) {
printf("\r%d", i);
fflush(stdout);
sleep(1);
}
printf("\n");
}
I think it should be modified not to rely on the fact that
the decoding of CR is suspended until the next byte arrives.
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-02-29 11:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 19:03 carriage-return no longer works quite right in shell-mode Chris Moore
2008-02-11 0:17 ` Richard Stallman
2008-02-11 2:55 ` Stefan Monnier
2008-02-12 12:24 ` Chris Moore
2008-02-29 8:39 ` Romain Francoise
2008-02-29 11:31 ` Kenichi Handa [this message]
2008-02-29 15:21 ` Romain Francoise
2008-03-04 11:44 ` Kenichi Handa
2008-03-04 11:42 ` Kenichi Handa
2008-03-04 15:46 ` Stefan Monnier
2008-03-05 2:00 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JV3Su-0008Ul-0O@etlken.m17n.org \
--to=handa@m17n.org \
--cc=christopher.ian.moore@gmail.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
--cc=romain@orebokech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).