Function: reftex-kill-buffer-hook
reftex-kill-buffer-hook is a byte-compiled function defined in
reftex.el.gz.
Signature
(reftex-kill-buffer-hook)
Documentation
Save RefTeX's parse file for this buffer if the information has changed.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex.el.gz
(defun reftex-kill-buffer-hook ()
"Save RefTeX's parse file for this buffer if the information has changed."
;; Save the parsing information if it was modified.
;; This function should be installed in `kill-buffer-hook'.
;; We are careful to make sure nothing goes wrong in this function.
(when (and (boundp 'reftex-mode) reftex-mode
(boundp 'reftex-save-parse-info) reftex-save-parse-info
(boundp 'reftex-docstruct-symbol) reftex-docstruct-symbol
(symbol-value reftex-docstruct-symbol)
(get reftex-docstruct-symbol 'modified))
;; Write the file.
(condition-case nil
(reftex-access-parse-file 'write)
(error nil))))