unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* comint-previous-input mangles current line
@ 2015-08-18 15:32 Joe Riel
  2015-08-18 16:30 ` Joe Riel
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Riel @ 2015-08-18 15:32 UTC (permalink / raw)
  To: Help GNU Emacs

Is there a simple fix for the following problem.
I'm running shell.  I then use C-up (comint-previous-input)
to scroll through the history of inputs.  This
mangles the input on the screen.  For example,
if I had

src $ echo nonsense
nonsense
src $ [type C-up]

The last line becomes

echo nonsensesrc $ 

That is, the previous command is displayed before the prompt.

Sometimes, when starting emacs this works fine.
Sometimes it does not.  When not, it never works
properly.  

-- 
Joe Riel




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: comint-previous-input mangles current line
  2015-08-18 15:32 comint-previous-input mangles current line Joe Riel
@ 2015-08-18 16:30 ` Joe Riel
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Riel @ 2015-08-18 16:30 UTC (permalink / raw)
  To: help-gnu-emacs

On Tue, 18 Aug 2015 08:32:56 -0700
Joe Riel <joer@san.rr.com> wrote:

> Is there a simple fix for the following problem.
> I'm running shell.  I then use C-up (comint-previous-input)
> to scroll through the history of inputs.  This
> mangles the input on the screen.  For example,
> if I had
> 
> src $ echo nonsense
> nonsense
> src $ [type C-up]
> 
> The last line becomes
> 
> echo nonsensesrc $ 
> 
> That is, the previous command is displayed before the prompt.
> 
> Sometimes, when starting emacs this works fine.
> Sometimes it does not.  When not, it never works
> properly.  
> 

Figured it out, need to set the regexp for the prompt.

-- 
Joe Riel




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-18 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18 15:32 comint-previous-input mangles current line Joe Riel
2015-08-18 16:30 ` Joe Riel

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).