REPL: fix for history navigation
commit2ca4ad6e1385e2ea21f05f6760db0e0ff5cca4c3
authorJose Antonio Ortega Ruiz <jao@gnu.org>
Fri, 7 Jan 2011 13:14:31 +0000 (7 14:14 +0100)
committerJose Antonio Ortega Ruiz <jao@gnu.org>
Fri, 7 Jan 2011 13:14:31 +0000 (7 14:14 +0100)
treec778fd0569daa3483ca05b9baafbd679b3369d5c
parent7342870bfce4071673936597559ae60ffcba03b2
REPL: fix for history navigation

We were using a comint-get-old-input function that was including the
prompt in its returned value. This was no problem most of the time
because we don't use comint-send-input before the process mark, but
there's another circumstance under which comint-get-old-input is
called, namely, when reaching the end of the input history. When
history is exhausted, the "old input" is inserted (go figure), and we
were inserting a prompt, wreaking havoc with its read-only-ness.
elisp/geiser-repl.el