Function: reftex-reset-mode
reftex-reset-mode is an interactive and byte-compiled function defined
in reftex.el.gz.
Signature
(reftex-reset-mode)
Documentation
Reset RefTeX Mode.
This will re-compile the configuration information and remove all current scanning information and the parse file to enforce a rescan on next use.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex.el.gz
(defun reftex-reset-mode ()
"Reset RefTeX Mode.
This will re-compile the configuration information and remove all
current scanning information and the parse file to enforce a rescan
on next use."
(interactive)
;; Reset the file search path variables
(dolist (prop '(status master-dir recursive-path rec-type))
(put 'reftex-tex-path prop nil)
(put 'reftex-bib-path prop nil))
;; Kill temporary buffers associated with RefTeX - just in case they
;; were not cleaned up properly
(save-excursion
(let ((buffer-list '("*RefTeX Help*" "*RefTeX Select*"
"*Duplicate Labels*" "*toc*" " *RefTeX-scratch*"))
buf)
(while (setq buf (pop buffer-list))
(if (get-buffer buf)
(kill-buffer buf))))
(reftex-erase-all-selection-and-index-buffers))
;; Make sure the current document will be rescanned soon.
(reftex-reset-scanning-information)
;; Remove any parse info file
(reftex-access-parse-file 'kill)
;; Plug functions into AUCTeX if the user option says so.
(and reftex-plug-into-AUCTeX
(reftex-plug-into-AUCTeX))
(reftex-compile-variables))