From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: OP Newsgroups: gmane.comp.lang.scala.user,gmane.emacs.help Subject: Re: Re: 2.9.0.1 Scala REPL gets messed up when run within "M-x term" [emacs 23.2.93.1] Date: Wed, 15 Jun 2011 11:35:24 +0530 Message-ID: References: <4e2d425c-94aa-4d84-98e7-46e9555e03e8@x38g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0023545bde2475010f04a5b9f11c X-Trace: dough.gmane.org 1308117980 2155 80.91.229.12 (15 Jun 2011 06:06:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 06:06:20 +0000 (UTC) Cc: scala-user , "gnu.emacs.help group" To: huynhjl Original-X-From: scala-user+bncCLT5-MH9GRC7l-HvBBoEzukyWA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 15 08:06:16 2011 Return-path: Envelope-to: gclsu-scala-lounge@m.gmane.org Original-Received: from mail-fx0-f58.google.com ([209.85.161.58]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWjEx-0002xE-Pg for gclsu-scala-lounge@m.gmane.org; Wed, 15 Jun 2011 08:06:11 +0200 Original-Received: by fxm9 with SMTP id 9sf263706fxm.3 for ; Tue, 14 Jun 2011 23:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:mime-version :in-reply-to:references:from:date:message-id:subject:to:cc :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=MfirgT3UjVBiVkCaqem0l/P97ZwIY+uaJOgWr+i2dq4=; b=Idj7sZ9LlUaUBJBLSjC+93ea8kFoH2pAjvmoiLgjyHZlKSVSm8WBxRGafc/obysb9t yWEj0Iq7i0NTyr12FPwcPlIHN8Fz7NHz1lwbGwxoKyYk46BDTaxn5gO+4Ipd3LSV4FKH 2ynMgBgqv8lLR72ErLCremeMdnClT/ohOkiIE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; b=gyGkLl2isp36kie/GcFYFn0vQI2dQbmuSNEMLjKIzjlgmlknn9QJnwTGydsYHr3bWI jpnjqLhz1oHdPQRhwbVv8FJPxXsdSFM0+jRlpiycS0kVyhFq9Pkb110KSw1scxjHTXJi NuMXFOvBZ4NUGlJmLBYc0K6jhap1dtaAOuWms= Original-Received: by 10.223.58.212 with SMTP id i20mr20123fah.18.1308117947210; Tue, 14 Jun 2011 23:05:47 -0700 (PDT) X-BeenThere: scala-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.204.34.76 with SMTP id k12ls58006bkd.0.gmail; Tue, 14 Jun 2011 23:05:45 -0700 (PDT) Original-Received: by 10.204.26.212 with SMTP id f20mr8554bkc.19.1308117945746; Tue, 14 Jun 2011 23:05:45 -0700 (PDT) Original-Received: by 10.204.26.212 with SMTP id f20mr8552bkc.19.1308117945714; Tue, 14 Jun 2011 23:05:45 -0700 (PDT) Original-Received: from mail-fx0-f51.google.com (mail-fx0-f51.google.com [209.85.161.51]) by gmr-mx.google.com with ESMTPS id j17si66587bkt.3.2011.06.14.23.05.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2011 23:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of ovr.pron8r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.161.51 as permitted sender) client-ip=209.85.161.51; Original-Received: by fxm5 with SMTP id 5so173145fxm.38 for ; Tue, 14 Jun 2011 23:05:45 -0700 (PDT) Original-Received: by 10.223.144.136 with SMTP id z8mr120261fau.31.1308117945351; Tue, 14 Jun 2011 23:05:45 -0700 (PDT) Original-Received: by 10.223.87.16 with HTTP; Tue, 14 Jun 2011 23:05:24 -0700 (PDT) In-Reply-To: <4e2d425c-94aa-4d84-98e7-46e9555e03e8-2AVFgVbosF/FX/zIJQasLWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org> X-Original-Sender: ovr.pron8r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ovr.pron8r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.161.51 as permitted sender) smtp.mail=ovr.pron8r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass (test mode) header.i=@gmail.com Precedence: list Mailing-list: list scala-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact scala-user+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 163218044152 List-Post: , List-Help: , List-Archive: Original-Sender: scala-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Xref: news.gmane.org gmane.comp.lang.scala.user:41130 gmane.emacs.help:81349 Archived-At: --0023545bde2475010f04a5b9f11c Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Does the problem exist with 2.8.0 or 2.8.1? > > --Jean-Laurent > > On Jun 14, 4:52 am, OP 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 > > > > 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) > --0023545bde2475010f04a5b9f11c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello Jean, all

=A0The problem does not exist= for 2.8.1.final:
=A0I 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
=A0OP


=

On Tue, Jun 14, 2011 at 8:00 PM, huynhj= l <huynhjl@gmail.= com> wrote:
Does the problem exist with 2.8.0 or 2.8.1?=

--Jean-Laurent

On Jun 14, 4:52=A0am, OP <ovr.pr= o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Please let me know if there is any other info needed.. i have describe= d 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&qu= ot; env-var unset:
>
> > Emacs -Q
>
> =A0(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-histo= ry:
> <"abc"> and <10>
>
> > scala> "abc"
>
> res6: java.lang.String =3D abc
>
> > scala> 10
>
> res7: Int =3D 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 currentl= y displayed
> contents.. *Problem!*
>
> > scala> 10"abc"
>
> 3b. hit ENTER
>
> > scala> 10"abc"
>
> res8: java.lang.String =3D 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 - he= re it
> correctly accepts "abc", not the concatenation of 10 and &qu= ot;abc" that is
> displayed)
>
> Tab-completion *does *work fine.
>
> =A0I have tried running the scala interpreter from within a 'term&= #39; session of
> an "emacs -Q" instance with the same results.
> =A0Also, this works fine within Terminal.app: its just that I have ema= cs/term
> configured to avoid a lot of keyboard-relate fatigue (so I would be gl= ad for
> any help in getting 2.9 to work like this)

--0023545bde2475010f04a5b9f11c--