LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2005, 02:54 PM   #1
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Rep: Reputation: 15
xemacs starts instead of emacs


Gentoo
2.6.13
both emacs and xemacs are installed

I have recently installed both versions of emacs on my computer (both emacs and xemacs), and I have run into a bit of a conundrum when it comes to trying to start emacs in an aterm. It seems taht when I type "emacs", no modifiers or anything else, xemacs starts instead of emacs for some reason. Thanks!
 
Old 09-29-2005, 03:06 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
This isn't meant to be rude (I promise): are you sure it's starting xemacs?

If you compile the emacs package with X include files and X libraries present, the emacs executable will support both a terminal-only mode as well as an X windows mode. When emacs is started, I believe it looks at the TERM environment variable. If it sees "xterm" then it tries to open a separate window. If not, then it opens the stripped down terminal-only version.

You can always run "emacs" and then "xemacs" to compare the windows they create. I would bet you'll see a difference.

Double check, and if you still have the problem and are certain that xemacs is starting instead of emacs, then we'll look at some other things.
 
Old 09-29-2005, 03:28 PM   #3
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Original Poster
Rep: Reputation: 15
your right

your right, emacs is starting in x mode instead of it being xemacs, thanks for the suggestion for starting both. Well, now that we know that it is emacs in x mode, how do I prevent emacs from starting in x mode or whatever?
 
Old 09-29-2005, 03:33 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
You can start emacs like this:
Code:
$ emacs -nw
"nw" for "no window"...
 
Old 09-30-2005, 03:44 PM   #5
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Original Poster
Rep: Reputation: 15
thanks!

Thanks! That -nw thing worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Strange Problem with Emacs/XEmacs mrgoodtrips Linux - Software 1 07-28-2005 01:34 AM
emacs and xemacs darknails Linux - Software 1 01-16-2005 07:42 AM
xemacs/ emacs conflict s.mcclatchie Mandriva 1 04-25-2004 10:07 PM
emacs or xemacs? Tyir Linux - General 8 04-02-2004 02:33 AM
emacs or Xemacs saurya_s Linux - Software 1 02-05-2004 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration