all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 2.9.0.1 Scala REPL gets messed up when run within "M-x term" [emacs 23.2.93.1]
@ 2011-06-14 11:52 OP
       [not found] ` <4e2d425c-94aa-4d84-98e7-46e9555e03e8@x38g2000pri.googlegroups.com>
  0 siblings, 1 reply; 3+ messages in thread
From: OP @ 2011-06-14 11:52 UTC (permalink / raw)
  To: scala-user, gnu.emacs.help group

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

Please let me know if there is any other info needed.. i have described the
problem in reproduction steps below.

Using REPL history messes up displayed content within REPL.

0a. Launch emacs and then start 'term' with the "EMACS" env-var unset:

> Emacs -Q

 (M-x term RET RET)

$ unset EMACS


0b. launch scala from within this terminal buffer

> $ scala <RET>



1. starting state/creating history - adding 2 entries to command-history:
<"abc"> and <10>

> scala> "abc"

res6: java.lang.String = abc


> scala> 10

res7: Int = 10




2. hit 'up' or CTRL-P once - most recent entry is pulled from history. *No
problem!*

scala> 10


3a. hit 'up' once more - next-recent is *appended* to currently displayed
contents.. *Problem!*

> scala> 10"abc"



3b. hit ENTER

> scala> 10"abc"

res8: java.lang.String = abc




The issue in 3b repeats for every 'up' or subsequent 'down'.. appending more
and more entries.
(scala/repl though treats the input correctly internally.. see 3b - here it
correctly accepts "abc", not the concatenation of 10 and "abc" that is
displayed)



Tab-completion *does *work fine.


 I have tried running the scala interpreter from within a 'term' session of
an "emacs -Q" instance with the same results.
 Also, this works fine within Terminal.app: its just that I have emacs/term
configured to avoid a lot of keyboard-relate fatigue (so I would be glad for
any help in getting 2.9 to work like this)

[-- Attachment #2: Type: text/html, Size: 4841 bytes --]

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

end of thread, other threads:[~2011-06-15  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 11:52 2.9.0.1 Scala REPL gets messed up when run within "M-x term" [emacs 23.2.93.1] OP
     [not found] ` <4e2d425c-94aa-4d84-98e7-46e9555e03e8@x38g2000pri.googlegroups.com>
     [not found]   ` <4e2d425c-94aa-4d84-98e7-46e9555e03e8-2AVFgVbosF/FX/zIJQasLWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org>
2011-06-15  6:05     ` OP
     [not found]   ` <BANLkTi=O5oJtpvc7J50GE0zycWq4hf=pRQ@mail.gmail.com>
     [not found]     ` <BANLkTi=O5oJtpvc7J50GE0zycWq4hf=pRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-15  6:23       ` OP

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.