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
           (get-frame-prop-func (if (fboundp 'frame-property)
                                    'frame-property
                                  'frame-parameter)))
      (while (setq frame (pop frames))
        (if (equal (funcall get-frame-prop-func frame 'name)
                   "RefTeX TOC Frame")
            (progn
              (delete-frame frame)
              (throw 'exit nil))))
      (reftex-make-separate-toc-frame))))