Function: reftex-index-restrict-to-section

reftex-index-restrict-to-section is an interactive and byte-compiled function defined in reftex-index.el.gz.

Signature

(reftex-index-restrict-to-section &optional FORCE)

Documentation

Restrict index to entries defined in same document section as entry at point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
(defun reftex-index-restrict-to-section (&optional force)
  "Restrict index to entries defined in same document section as entry at point."
  ;; Optional FORCE means, even if point is not on an index entry.
  (interactive)
  (let* ((data (get-text-property (point) :data))
         (docstruct (symbol-value reftex-docstruct-symbol))
         bor eor)
    (if (and (not data) force)
        (setq data (assq 'toc docstruct)))
    (when data
      (setq bor (reftex-last-assoc-before-elt 'toc data docstruct)
            eor (car (memq (assq 'toc (cdr (memq bor docstruct)))
                           docstruct))
            reftex-index-restriction-data (list bor eor)
            reftex-index-restriction-indicator (nth 6 bor) )))
  (reftex-index-revert))