Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18518 - (emacs) AucTeX command menu won't open in Emacs
Summary: (emacs) AucTeX command menu won't open in Emacs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-31 04:12 UTC by Matthieu Codron
Modified: 2005-03-12 21:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch for .../auctex/tex.el (tex.el.patch,377 bytes, patch)
2005-02-14 10:58 UTC, Peter Paris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Codron 2003-03-31 04:12:43 UTC
Using gentoo 1.4 rc3 both on a Athlon XP and a Pentium4 Xeon 
CFLAGS = -O3 -march=athlon-xp (-march=pentium3 for the Xeon) -fomit-frame-pointer 
 
The command menu from AucTeX 10.0g won't open in Emacs 21.3 (neither in 21.2)
Comment 1 Carsten Frewert 2003-03-31 08:38:01 UTC
Works fine here with app-emacs/auctex-10.0g and app-editors/emacs-21.3.

Are there any error messages in the Messages-buffer?
Check your load-path (e.g. C-h v <return> load-path <return>). It should contain
/usr/share/emacs/site-lisp/ and /usr/share/emacs/site-lisp/auctex.
Comment 2 Marko Daniel 2003-08-11 04:15:48 UTC
Has this ever been resolved?

I have the same problem and it is unrelated to auctex. I tried 
emerge =app-emacs/auctex-10.0g and that didn't work either.
Manual installation of tarball also failed.

Manual installation of tarball in redhat 9.0 (booted from different partition) works perfectly.

What could this error be due to?
Comment 3 Marko Daniel 2003-08-11 08:45:05 UTC
Recompiled emacs with userflag Xaw3d set and it works...
Comment 4 Joao Teixeira 2003-10-23 12:41:42 UTC
Same problem with gentoo on PPC. On starting emacs with auctex mode, it reports:

Warning: Actions not found: reset, set, notify, unset
Warning: Actions not found: reset, set, notify, unset
Comment 5 Joao Teixeira 2003-10-30 11:13:40 UTC
Modifying the ebuild file of auctex so that the ebuild demands emacs compiled
with Xaw3d support should solve this. 

Meanwhile... just recompile emacs with userflag -Xaw3d set.It worked for
me.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-31 06:02:30 UTC
Thanks for the comment. I confirmed the problem and added a notice for
users to enable USE="Xaw3d" if it is not set.
Comment 7 Brett Presnell 2004-07-01 08:46:23 UTC
We are having this same problem (Command menu does not work).  Note that the other auctex menus do work.

Just to be sure about the Xaw3d thing, I just rebuilt emacs (21.3.1-r3) with

USE="Xaw3d" emerge emacs

and reinstalled auctex (11.14) with

ACCEPT_KEYWORDS="~sparc" emerge --ask app-emacs/auctex

and still the same problem. Any ideas?
Comment 8 Brett Presnell 2004-07-02 14:20:23 UTC
Ok, I figured out a workaround.  The gentoo default USE flags include "motif"
which appears to override "Xaw3d".  Building emacs with

USE="Xaw3d -motif" emerge emacs

fixes the problem on our system.
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-04 07:17:54 UTC
I see... I reversed motif and Xaw3d USE flag order because if a user
sets non-default Xaw3d USE flag I guess he/she does not intend to get
default motif interface.
Comment 10 Peter Paris 2005-01-18 14:08:09 UTC
The problem with the Command menu not working is related to an obscure conflict with KDE. This is explained in detail at http://groups-beta.google.com/group/comp.windows.x.motif/browse_frm/thread/c20cc6d768acd666

The way I "fixed" the problem is to change the following line in tex.el from:
(defconst TeX-command-menu-name "Command"
to:
(defconst TeX-command-menu-name "Commands"


Comment 11 Peter Paris 2005-02-14 10:58:34 UTC
Created attachment 51225 [details, diff]
Proposed patch for .../auctex/tex.el

Apply this patch to /usr/share/emacs/site-lisp/auctex/tex.el.
It changes the name of the menu from 'Command' to Commands' this fixes an
obscure conflict with KDE as pointed out in my earlier post (#10).
Comment 12 Gary Young 2005-03-07 20:57:27 UTC
When I emerged emacs 21.4 and auctex 11.54, I noticed two problems that I initially thought were unrelated: (1) the "command" menu bug described here and (2) a "find file dialog box that was wider than the screen space, forcing me to drag it across the screen to view the list of files.

After I recompiled with the USE flag suggested by Brett Presnell, both problems went away. Now instead of a dialog box, emacs prompts me to enter the directory path in the lowermost buffer. I'm new to emacs (and to gentoo), so I can't say if that's the proper behavior or not. In any event, I prefer it to the oversize dialog box.

My experience leads me to think that this bug is more wide-ranging than the auctex menu problem.

Comment 13 Gary Young 2005-03-12 21:21:44 UTC
Just a follow-up to my last post. Today I did an "emerge --update world." My emacs was recompiled after a newer version of motif was installed, and the menu problem is indeed fixed. Nonetheless, I think I will recompile with the USE=Xaw3d flag for two reasons -- the pulldown menus appear with a mouse-over, whereas with the motif menu I have to tap on my touchpad and secondly, I prefer not to have the motif "find file" dialog box.