You are not logged in.
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
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
Offline
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
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