FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-23-2008, 06:40 PM
"Paul Johnson"
 
Default emacs won't run, but emacs22 will

In a terminal, if I type

$ emacs

the hard drive churns. The terminal looses focus, but no emacs frame appears.

ps seems to think emacs is running.

$ ps aux | grep emacs
pauljohn 7724 2.7 1.9 30220 20228 pts/1 S+ 13:35 0:01 emacs

This does work to start emacs

$ emacs22

$ ps aux | grep emacs
pauljohn 7724 1.7 1.9 30220 20228 pts/1 S+ 13:35 0:01 emacs
pauljohn 7824 18.6 1.7 28296 18552 pts/3 S+ 13:36 0:00 emacs22


I have tried to manipulate the /etc/alternatives settings so that
typing emacs makes emacs22 start, but it just refuses. I'm
completely stumped. I've tried removing all emacs completely,
installing only emacs22-gtk. Still, ordinary "emacs" does nothing.

$ ls -la /usr/bin/emacs*
lrwxrwxrwx 1 root root 23 2008-07-23 11:10 /usr/bin/emacs ->
/etc/alternatives/emacs
lrwxrwxrwx 1 root root 25 2008-05-26 18:46 /usr/bin/emacs22 ->
/etc/alternatives/emacs22
-rwxr-xr-x 1 root root 5465260 2008-05-03 04:10 /usr/bin/emacs22-gtk
-rwxr-xr-x 1 root root 5473496 2008-05-03 04:10 /usr/bin/emacs22-x

$ ls -la /etc/alternatives/emacs*
lrwxrwxrwx 1 root root 20 2008-07-23 11:10 /etc/alternatives/emacs ->
/usr/bin/emacs22-gtk
lrwxrwxrwx 1 root root 20 2008-07-23 10:56 /etc/alternatives/emacs22
-> /usr/bin/emacs22-gtk


Here i've tried to make emacs point to exactly the same place as
emacs22, but it won't run.

I've even tried to go Rambo on it with

$ rm /usr/bin/emacs
$ ln -sf /usr/bin/emacs22-gtk /usr/bin/emacs

Still, same problem. no emacs appears.


I have these packages installed:

$ dpkg -l |grep emacs
ii emacs-ess-ku 1.0.0-1
Emacs startup config I prefer for KU labs
rc emacs21 21.4a+1-5.3ubuntu1.1
The GNU Emacs editor
rc emacs21-bin-common 21.4a+1-5.3ubuntu1.1
The GNU Emacs editor's shared, architecture
ii emacs22 22.1-0ubuntu10.1
The GNU Emacs editor (Emacs 22)
ii emacs22-bin-common 22.1-0ubuntu10.1
The GNU Emacs editor's shared, architecture
ii emacs22-common 22.1-0ubuntu10.1
The GNU Emacs editor's common
infrastructure
ii emacs22-el 22.1-0ubuntu10.1
GNU Emacs LISP (.el) files
ii emacs22-gtk 22.1-0ubuntu10.1
The GNU Emacs editor (with GTK+ 2.x
support)
ii emacsen-common 1.4.17


Any other diagnostic information that might help?

$ which emacs
/usr/bin/emacs
$ type emacs
emacs is /usr/bin/emacs

It is only frustrating because I am accustomed to typing "emacs" and
not "emacs22". That, plus none of the configurations and scripts I
have will work without being changed to "emacs22".


--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-23-2008, 09:41 PM
"Mumia W."
 
Default emacs won't run, but emacs22 will

Paul Johnson wrote:
> In a terminal, if I type
>
> $ emacs
>
> the hard drive churns. The terminal looses focus, but no emacs frame appears.
> [...]
>
> It is only frustrating because I am accustomed to typing "emacs" and
> not "emacs22". That, plus none of the configurations and scripts I
> have will work without being changed to "emacs22".
>
>

Until you get it sorted out, you can use a script to invoke emacs22:

-----file:~/bin/emacs----------
#!/bin/sh
exec emacs22 "$@"
-----end-----------------------

Evidently, emacs doesn't like its own name ;-) Do an strace on it:
"strace emacs". It's probably having some problem finding a
configuration file that uses the binary's name. Either that or emacs has
a bug in finding its X resources; by default, a program looks for
resources that start with the program's name.

HTH




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-23-2008, 11:37 PM
"Paul Johnson"
 
Default emacs won't run, but emacs22 will

Problem is solved if I do not use the compiz window decorator. I'm
going to go bother them in their homeland, rather than bother the rest
of you innocent Ubuntuers.

I'm studying the strace output, lots of blah I can't decipher. Seems
like starting emacs touches every shared library and service that
exists.

PJ

On 7/23/08, Mumia W. <paduille.4062.mumia.w+nospam@earthlink.net> wrote:
> Paul Johnson wrote:
>> In a terminal, if I type
>>
>> $ emacs
>>
>> the hard drive churns. The terminal looses focus, but no emacs frame
>> appears.
>> [...]
>>
>> It is only frustrating because I am accustomed to typing "emacs" and
>> not "emacs22". That, plus none of the configurations and scripts I
>> have will work without being changed to "emacs22".
>>
>>
>
> Until you get it sorted out, you can use a script to invoke emacs22:
>
> -----file:~/bin/emacs----------
> #!/bin/sh
> exec emacs22 "$@"
> -----end-----------------------
>
> Evidently, emacs doesn't like its own name ;-) Do an strace on it:
> "strace emacs". It's probably having some problem finding a
> configuration file that uses the binary's name. Either that or emacs has
> a bug in finding its X resources; by default, a program looks for
> resources that start with the program's name.
>
> HTH
>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 10:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org