LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-20-2005, 12:46 AM   #1
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Rep: Reputation: 31
'emacs&' doesn't work


If I type 'emacs&' it will not launch emacs in a separate window. In fact, it doesn't even display emacs. However, it is started since it shows up in the list of processes but it will not open in a new window or even in the shell. 'emacs' works fine but, of course, it opens in the shell which is not what I want.

emacs --version:
GNU Emacs 21.4.1

Thanks
Michael
 
Old 05-20-2005, 01:40 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
try
Code:
pidof emacs|xargs kill -9;emacs;
See if there are any error messages and if emacs is starting. If it is working try again your command
Code:
emacs&
 
Old 05-20-2005, 08:15 PM   #3
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
There are no errors and emacs launches fine... in the shell.

If I type 'emacs&' it shows up in the list of processes but doesn't actually launch in a separate window: nothing happens.
 
Old 05-21-2005, 04:17 AM   #4
Andramalech
Member
 
Registered: Nov 2004
Location: Sweden
Distribution: SUSE 11.2
Posts: 52

Rep: Reputation: 15
are you not supposed to leave a space between the & and emacs?

EDIT: ok, apparently not... :S
 
Old 05-22-2005, 02:41 AM   #5
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Bump?
 
Old 05-23-2005, 08:15 PM   #6
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Any ideas, anyone..?
 
Old 05-25-2005, 03:33 PM   #7
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Nobody, huh..?
 
Old 05-25-2005, 03:46 PM   #8
jw2328
Member
 
Registered: May 2005
Distribution: Debian
Posts: 51

Rep: Reputation: 15
Do you use emacs in the full blown x environment, or as a terminal editor like nano?
 
Old 05-25-2005, 05:07 PM   #9
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Rep: Reputation: 30
Quote:
Originally posted by Andramalech
are you not supposed to leave a space between the & and emacs?

EDIT: ok, apparently not... :S
I've used a space between emacs and & for years and never had a problem with it. The & operator causes the application/script/whatever to fork off so the console isn't 'stuck' handling it. Pretty useful if you call all your programs from the command line and don't feel like creating 20 terminals to handle 20 different programs.
 
Old 05-25-2005, 10:47 PM   #10
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Unforuntately this doesn't work (emacs & instead of emacs& ). Using emacs in this way isn't that big of a deal but I would prefer to have the '&' operator to work as it should. I usually just open two emacs's in separate tabs in a terminal (one with rootly powers and another without) and use F11 to display all open files. However, some things become problematic when emacs in embedded in a terminal rather than its own window.

I would really appreciate any additional help.
Thanks
 
Old 05-26-2005, 02:10 AM   #11
jw2328
Member
 
Registered: May 2005
Distribution: Debian
Posts: 51

Rep: Reputation: 15
Yeah, it seems as if you are using emacs embedded in a terminal. It is not possible to fork its own process then, as if you detach it from the terminal it has nowhere to display. If you want a separate terminal to pop up holding it try something like xterm -e emacs &.

Hope this helps
 
Old 05-26-2005, 02:33 AM   #12
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Well what do you know... that worked all right.
I appreciate your help. I'll have to try to figure out some way to do this some other way. It works though.
 
Old 05-26-2005, 02:36 AM   #13
jw2328
Member
 
Registered: May 2005
Distribution: Debian
Posts: 51

Rep: Reputation: 15
Why not just add an alias to you .bashrc so that this command is executed by something like emac. I'm not sure whether you can overwrite an original command?
 
Old 05-26-2005, 02:45 AM   #14
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
I just created a file that contains 'gnome-terminal -e emacs &' and added the directory to my path.

Nevermind, I decided to use your suggested approach.
Thanks again
 
Old 05-30-2005, 11:13 PM   #15
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Sorry to revive this relatively old thread but I wanted to comment on jw2328's response. Technically, this is not what I wanted, as this simply launches emacs in a separate terminal. I want emacs& to launch emacs in its own non-terminal window (the "emacs" window).

Any other ideas?
Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
RightAlt doesn't work in Emacs kornerr Linux - General 1 06-13-2005 12:42 PM
VI Editor & Emacs drumstick Linux - Software 9 05-30-2005 07:26 AM
VISUAL=emacs does not work GooGooMuk Slackware 2 01-25-2005 06:24 PM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration