help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie tries to hack comint.el (help!)


From: Miles Bader
Subject: Re: newbie tries to hack comint.el (help!)
Date: Tue, 29 Jun 2004 17:36:09 -0000

Kevin Rodgers <address@hidden> writes:
>  > Note that comint _does not know_ (and cannot know) the difference
>  > between "myhost: ~ ...$ " and "> " -- it can't tell when your input
>  > causes a process to run in the shell, it just sees the input and output.
>  > comint-prompt-regexp is probably not useful because it is designed to
>  > match most prompts, and that includes "> ".
>
> But doesn't comint or process-mark keep track of where the previous
> command's output ended?  You should be able to search forward from there
> to the next matching prompt.

Note that prompts are output -- in this example "> " is the `commands's
most recent output.'

-Miles
-- 
Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche


reply via email to

[Prev in Thread] Current Thread [Next in Thread]