[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Disappearing Reftex
From: |
Alan Ristow |
Subject: |
[AUCTeX] Disappearing Reftex |
Date: |
Fri, 29 Sep 2006 17:22:12 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 |
Hi,
I'm not entirely certain that this is the correct forum to ask this
question, but I can't find one that is Reftex-specific and thought I
might have more luck here than in a more general Emacs group. If I
should take my query elsewhere please let me know and I'll do so gladly....
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.
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.
I haven't been able to find any reports of problems between Reftex and
gnuclient, and since the problem occurs whether or not I touch the menus
I don't think it's related to the known menu bug (at least as I
understand it, which could be wrong).
My .emacs file follows -- is there anything obvious that could lead to this?
Thanks,
Alan
(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)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(defun my-latex-setup ()
"Customize up my LaTeX environment."
(setq default-input-method "TeX"))
(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
(autoload 'reftex-citation "reftex-cite" "Make Citation" nil)
(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase Mode" t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex)
(add-hook 'LaTeX-mode-hook 'my-latex-setup)
(add-hook 'latex-mode-hook 'my-latex-setup)
(setq reftex-plug-into-AUCTeX t)
(setq reftex-bibpath-environment-variables
'("E:/localtexmf/bibtex/bib//"))
(setq-default ispell-program-name "aspell")
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(TeX-command-list (quote (("TeX" "%(PDF)%(tex) %S%(PDFout)
\"%(mode)\\input %t\"" TeX-run-TeX nil (plain-tex-mode texinfo-mode
ams-tex-mode) :help "Run plain TeX") ("LaTeX" "%l
\"%(mode)\\input{%t}\"" TeX-run-TeX nil (latex-mode doctex-mode) :help
"Run LaTeX") ("Makeinfo" "makeinfo %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML"
"makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run
Makeinfo with HTML output") ("AmSTeX" "%(PDF)amstex %S%(PDFout)
\"%(mode)\\input %t\"" TeX-run-TeX nil (ams-tex-mode) :help "Run
AMSTeX") ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX
nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "texexec
%(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until
completion") ("BibTeX" "bibtex --min-crossrefs=100 %s" TeX-run-BibTeX
nil t :help "Run BibTeX") ("View" "%V" TeX-run-discard t t :help "Run
Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help "View the printer queue"
:visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f "
TeX-run-command t t :help "Generate PostScript file") ("PS2PDF"
"gswin32c.exe -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -r600
-dCompatibilityLevel=1.4 -sOutputFile=%s.pdf -c save pop -f %f && start
%s.pdf" TeX-run-command t t :help "Generate PDF file") ("Index"
"makeindex %s" TeX-run-command nil t :help "Create index file") ("Check"
"lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file
for correctness") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function
nil t :help "Spell-check the document") ("Clean" "TeX-clean"
TeX-run-function nil t :help "Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete
generated intermediate and output files") ("Other" "" TeX-run-command t
t :help "Run an arbitrary command"))))
'(TeX-source-specials-mode t)
'(auto-revert-interval 2)
'(global-auto-revert-mode t)
'(reftex-texpath-environment-variables (quote (".//"
"E:/localtexmf/tex//" "E:/texmf/tex//")))
'(tex-bibtex-command "bibtex --min-crossrefs=100")
'(transient-mark-mode t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
- [AUCTeX] Disappearing Reftex,
Alan Ristow <=