[erlang-questions] using ctrl-g in emacs in erl

Wes James comptekki@REDACTED
Wed Nov 7 21:43:29 CET 2012


Thanks for the prod in the right direction!  I googled distel and I found:

http://parijatmishra.wordpress.com/2008/08/15/up-and-running-with-emacs-erlang-and-distel/

They mentioned going in to erlang mode and doing some things there and I
have erlang mode installed so I fired up emacs and type in m-x erlange-mode
and then pressed c-c c-z and it started an erlang shell.  I then pressed
ctrl-g and it put a ^G on the line, but this time when I pressed enter it
brought up the User switch command......

Thanks,

wes


On Wed, Nov 7, 2012 at 1:27 PM, James Aimonetti <james@REDACTED> wrote:

> Do you have Distel mode installed/enabled? I do, if that makes a
> difference.
>
> (emacs@REDACTED)1> 1+1.
> 2
> (emacs@REDACTED)2> 2+2.
> 4
> (emacs@REDACTED)3> ^G
>
> User switch command
>  --> q
>
> Process inferior-erlang finished
>
> That's what happens when I use Ctrl-q Ctrl-g <Enter> and use 'q' to quit
> the
> shell.
>
> This is GNU Emacs 23.3.1 (GNU/Linux x86_64), but I know this sequence has
> worked
> for me for several previous versions of emacs as well.
>
> On Wed, 7 Nov 2012 12:52:12 -0700
> Wes James <comptekki@REDACTED> wrote:
>
> > I tried that and it goes back to the Eshell.  One thing I just noticed is
> > when I'm doing commands, the shell prompt increments.  After doing the
> > ctrl-g or ctrl-q ctrl-g, the shell starts back at 1.
> >
> > wes
> >
> >
> > On Wed, Nov 7, 2012 at 12:47 PM, James Aimonetti <james@REDACTED>
> wrote:
> >
> > > On Wed, 7 Nov 2012 12:32:55 -0700
> > > Wes James <comptekki@REDACTED> wrote:
> > >
> > > > I've tried a few things with trying to get ctrl-g to work in emacs.
>  I've
> > > > run erl with M-x shell and M-x terminal-emulator.  M-x terminal
> emulator
> > > is
> > > > closer, but when I press ctrl-g it just puts ^G in the window and
> when I
> > > > press enter, it brings the erlang shell command line back without
> doing
> > > > anything.  Is there a way to do ctrl-g with another command. I've
> looked
> > > at
> > > > the other commands with ctrl-c, but they don't show the User Switch
> > > command
> > > > prompt.
> > > >
> > > > Thanks,
> > > >
> > > > Wes
> > >
> > > Try Ctrl-q Ctrl-g <Enter>
> > >
> > >
> > > --
> > > James Aimonetti
> > > Distributed Systems Engineer / DJ MC_
> > >
> > > 2600hz | http://2600hz.com
> > > sip:james@REDACTED
> > > tel: 415.886.7905
> > >
> > > _______________________________________________
> > > erlang-questions mailing list
> > > erlang-questions@REDACTED
> > > http://erlang.org/mailman/listinfo/erlang-questions
> > >
> > >
>
>
>
> --
> James Aimonetti
> Distributed Systems Engineer / DJ MC_
>
> 2600hz | http://2600hz.com
> sip:james@REDACTED
> tel: 415.886.7905
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121107/0f916af0/attachment.htm>


More information about the erlang-questions mailing list