You are not logged in.

#1 2009-11-02 19:15:17

manouchk
Member
Registered: 2008-07-29
Posts: 306

empty menu in gnuplot-mode

Hi,

I've got an issue with gnuplot-mode in emacs. I got an empty menu in gnuplot-mode.

gnuplot 4.2.6-1
emacs 23.1-3
I got the gnuplot.el* files:
-rw-r--r-- 1 root root 106K sept. 25 06:48 /usr/share/emacs/site-lisp/gnuplot.el
-rw-r--r-- 1 root root  73K sept. 25 06:48 /usr/share/emacs/site-lisp/gnuplot.elc

In ~/.emacs , I have:

;; Lines enabling gnuplot-mode
;; move the files gnuplot.el to someplace in your lisp load-path or
;;  (setq load-path (append (list "/path/to/gnuplot") load-path))
;; these lines enable the use of gnuplot mode
  (autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t)
  (autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot 
mode" t)
;; be loaded into gnuplot mode
  (setq auto-mode-alist (append '(("\\.gp$" . gnuplot-mode)) 
auto-mode-alist))
;; gnuplot mode 
  (global-set-key [(f9)] 'gnuplot-make-buffer)
;; end of line for gnuplot-mode

Anyone having the same issue? Any solution?

Offline

#2 2009-11-09 06:39:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,744

Re: empty menu in gnuplot-mode

I think you are fighting the same problem I am fighting with Python and C major modes.

What happens if you invoke emacs with the file name you are editing on the command line? Do you by chance have your menu?

Then, if you do, change to another buffer and then change back.  Did the menu go empty?

Lastly, try:

M-x accelerate-menu

Did the menu come back?  If so, the above command is a work around.
The problem has something to do with emacs 23.1, and gdk 2.18

Lastly, while writing this, I found a suggestion for  better work around (although still a work around) Try:

export GDK_NATIVE_WINDOWS=1

then launch emacs.

For the long term, there are patches appearing in cyberland.  I'm sure they will find their way into Arch.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#3 2010-01-04 22:31:12

harovali
Member
Registered: 2009-12-14
Posts: 6

Re: empty menu in gnuplot-mode

Thanks for your work-arounds, I needed them since I was experiencing the same problem with org-mode.

The "org" and the "tbl" menus wouldn't show any content.

When I tried opening the file in the emacs command line, then the "Org" menu showed a content but a wrong one.

M-x accelerate-menu didn't change that: content but a wrong one.

export GDK_NATIVE_WINDOWS=1

did the trick.

I wonder when this will get fixed definitely

h

Offline

#4 2010-03-08 17:44:16

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: empty menu in gnuplot-mode

M-x accelerate-menu
did the trick!

Aparently the patch has not been applied. Is there any bug relative to this problem?

running
GDK_NATIVE_WINDOWS=1 emacs script.gp
did the trick too

Thank you!

Offline

Board footer

Powered by FluxBB