Function: reftex-toc-quit

reftex-toc-quit is an interactive and byte-compiled function defined in reftex-toc.el.gz.

Signature

(reftex-toc-quit)

Documentation

Hide the TOC window and do not move point.

If the TOC window is the only window on the dedicated TOC frame, the frame is destroyed.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-toc.el.gz
(defun reftex-toc-quit ()
  "Hide the TOC window and do not move point.
If the TOC window is the only window on the dedicated TOC frame, the frame
is destroyed."
  (interactive)
  (if (and (one-window-p)
           (reftex-toc-dframe-p)
           (> (length (frame-list)) 1))
      (delete-frame)
    (or (one-window-p) (delete-window))
    (switch-to-buffer (marker-buffer reftex-toc-return-marker))
    (reftex-re-enlarge)
    (goto-char (or (marker-position reftex-toc-return-marker) (point)))))