help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running from terminal


From: Daniel Pittman
Subject: Re: running from terminal
Date: Sat, 24 May 2008 16:31:20 +1000
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux)

phillc <spyyderz@gmail.com> writes:

> i am using ubuntu (gui) and to start emacs, i open a terminal and type
> emacs.  

That seem cumbersome and unnecessary.  Try starting it from a menu or
other GUI shortcut, or running it from the "run program" widget provided
by the distribution.

> however, that then causes the terminal to stop, rendering it useless,
> despite it still existing, until in cntrl - c out of it.

No, it doesn't.  The emacs process is running and connected to the
terminal, even though it isn't using that.  This is the normal, correct
and expected behaviour of running a process from the command line.[1]

> is there anyway to launch emacs without it being dependant upon the
> terminal?

Plenty.  The first set of suggestions probably help.

However, if you insist on starting the tool from a command shell inside
a terminal and detaching it manually the invocation you are looking for
would be[2]:

] emacs & disown; exit

That would start emacs in the background, remove it from the bash process
group of the shell, then exit the shell and, consequently, the graphical
terminal emulator.

HTH, HAND.
         Daniel


Footnotes: 
[1]  It has become fashionable for some GUI applications to fork
     themselves away from the controlling terminal, these days, but many
     tools still work the right ^W traditional way.

[2]  ...assuming you have the default setup of bash as a login shell,
     which seems a likely bet, or have used something similarly derived.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]