Function: reftex-index-phrases-apply-to-region
reftex-index-phrases-apply-to-region is an interactive and
byte-compiled function defined in reftex-index.el.gz.
Signature
(reftex-index-phrases-apply-to-region BEG END)
Documentation
Index all index phrases in the current region.
This works exactly like global indexing from the index phrases buffer, but operation is restricted to the current region. This is useful if you need to add/change text in an already indexed document and want to index the new part without having to go over the unchanged parts again.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
(defun reftex-index-phrases-apply-to-region (beg end)
"Index all index phrases in the current region.
This works exactly like global indexing from the index phrases buffer,
but operation is restricted to the current region. This is useful if
you need to add/change text in an already indexed document and want to
index the new part without having to go over the unchanged parts again."
(interactive "r")
(let ((win-conf (current-window-configuration))
(reftex-index-phrases-restrict-file (buffer-file-name)))
(save-excursion
(save-restriction
(narrow-to-region beg end)
(unwind-protect
(progn
;; Hide the region highlighting
(deactivate-mark)
(delete-other-windows)
(reftex-index-visit-phrases-buffer)
(reftex-index-all-phrases))
(set-window-configuration win-conf))))))