Alan Ristow <address@hidden> writes:
Reftex keeps unloading on me and I'm not sure why. I thought I'd
tracked the problem to a bad command in my .emacs file and
everything seemed fine after I fixed it. However, after working in
Emacs for a little while today I hit C-c [ and the minibuffer
informed me that key binding is undefined. Sure enough, the Ref menu
had disappeared as well. After a bit more troubleshooting today I
noticed quite by accident that the Ref menu disappears within 10
seconds or so of startup, and does so at exactly the same time the
"GNU Emacs" buffer that serves as a welcome screen unloads. The
first line of my .emacs file is (setq debug-on-error t), but it
doesn't pop up anything up when Reftex unloads. As a relative newbie
to Emacs and AUCTeX I've exhausted my ability to debug this any
further myself.
(setq init-file-debug t)
at the start of .emacs.
I should note that I have installed gnuclient on my system and only
have this problem when I double-click on my .tex file to open it
with Emacs. If I open Emacs first, then open the file via C-x C-f
the Ref menu (and the rest of Reftex) sticks around. However, I'm
not sure if this is truly related to gnuclient, as when I comment
out the gnuclient-related commands from .emacs file I can no longer
open the file by double-clicking. In this case, since the "GNU
Emacs" buffer unloads the moment I hit C-x C-f it is gone before
Reftex ever loads and they never have the opportunity to unload
together.
Hm.
My .emacs file follows -- is there anything obvious that could lead to this?
(setq debug-on-error t)
;; set frame geometry
(set-frame-height (selected-frame) 42)
(set-frame-width (selected-frame) 80)
;; start gnuserv on Windows
(if (or (eq window-system 'w32) (eq window-system 'win32))
(progn
(require 'gnuserv)
(setq server-done-function 'bury-buffer
gnuserv-frame (car (frame-list)))
(gnuserv-start)
;;; open buffer in existing frame instead of creating new one...
(setq gnuserv-frame (selected-frame))
(message "gnuserv started.")))
;; set up for MiKTeX
(require 'tex-mik)
Which version of AUCTeX do you use?