Function: reftex-toc-toggle-dedicated-frame

reftex-toc-toggle-dedicated-frame is an interactive and byte-compiled function defined in reftex-toc.el.gz.

Signature

(reftex-toc-toggle-dedicated-frame)

Documentation

Toggle the display of a separate frame for the TOC.

This frame is not used by the reftex-toc commands, but it is useful to always show the current section in connection with the option reftex-auto-recenter-toc.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-toc.el.gz
(defun reftex-toc-toggle-dedicated-frame ()
  "Toggle the display of a separate frame for the TOC.
This frame is not used by the `reftex-toc' commands, but it is useful to
always show the current section in connection with the option
`reftex-auto-recenter-toc'."
  (interactive)
  (catch 'exit
    (let* ((frames (frame-list)) frame)
      (while (setq frame (pop frames))
        (if (equal (frame-parameter frame 'name)
                   "RefTeX TOC Frame")
            (progn
              (delete-frame frame)
              (throw 'exit nil))))
      (reftex-make-separate-toc-frame))))