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

* Re: Re: 2.9.0.1 Scala REPL gets messed up when run within "M-x term" [emacs 23.2.93.1]
       [not found]   ` <4e2d425c-94aa-4d84-98e7-46e9555e03e8-2AVFgVbosF/FX/zIJQasLWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org>
@ 2011-06-15  6:05     ` OP
  0 siblings, 0 replies; 3+ messages in thread
From: OP @ 2011-06-15  6:05 UTC (permalink / raw)
  To: huynhjl; +Cc: scala-user, gnu.emacs.help group

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

Hello Jean, all

 The problem does not exist for *2.8.1.final*:
 I can access and use history without these issues with the old version, and
see the problem only with *2.9.0.1 final*.

I just confirmed the above by switching scala-versions like so (for 2.9
below, and then equivalent 'ln' command to change to a 2.8 installation). So
all else is identical for 2.9 and 2.8 testss

> \ln -shvf /Applications/typesafe-stack scala_home



Regards
 OP



On Tue, Jun 14, 2011 at 8:00 PM, huynhjl <huynhjl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Does the problem exist with 2.8.0 or 2.8.1?
>
> --Jean-Laurent
>
> On Jun 14, 4:52 am, OP <ovr.pro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > 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: 3620 bytes --]

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

* Re: Re: 2.9.0.1 Scala REPL gets messed up when run within "M-x term" [emacs 23.2.93.1]
       [not found]     ` <BANLkTi=O5oJtpvc7J50GE0zycWq4hf=pRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-06-15  6:23       ` OP
  0 siblings, 0 replies; 3+ messages in thread
From: OP @ 2011-06-15  6:23 UTC (permalink / raw)
  To: Lex; +Cc: huynhjl, scala-user, gnu.emacs.help group

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

Hi Lex
 that was an interesting clue: I tried csh, ksh too. Sadly the problem
showed up on each of them.

I tested by invoking csh and ksh from within the bash session.
Then I also tried launching an independent ksh session:

> M-x term RET /bin/ksh RET

(I again did 'unset EMACS' before launching scala)

2.8 worked fine in each case, 2.9 did not.

Regards
 OP


[ while it looks like a scala issue to me at this point - rather than an
emacs one
 - I'm retaining emacs-help group in "cc:".. any emacs-term users launching
scala-2.9 from within term? ]


On Tue, Jun 14, 2011 at 9:05 PM, Lex <lexn82-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> I have noticed this problem a while ago with Bash.
>

[-- Attachment #2: Type: text/html, Size: 1420 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.