Function: reftex-index-phrase-selection-or-word
reftex-index-phrase-selection-or-word is an autoloaded, interactive
and byte-compiled function defined in reftex-index.el.gz.
Signature
(reftex-index-phrase-selection-or-word ARG)
Documentation
Add current selection or word at point to the phrases buffer.
When you are in transient-mark-mode(var)/transient-mark-mode(fun) and the region is active, the
selection will be used - otherwise the word at point.
You get a chance to edit the entry in the phrases buffer - finish with
C-c C-c (reftex-index-phrases-save-and-return).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
;;;###autoload
(defun reftex-index-phrase-selection-or-word (arg)
"Add current selection or word at point to the phrases buffer.
\\<reftex-index-phrases-mode-map>
When you are in `transient-mark-mode' and the region is active, the
selection will be used - otherwise the word at point.
You get a chance to edit the entry in the phrases buffer - finish with
\\[reftex-index-phrases-save-and-return]."
(interactive "P")
(set-marker reftex-index-return-marker (point))
(reftex-index-selection-or-word arg 'phrase)
(if (eq major-mode 'reftex-index-phrases-mode)
(message "%s"
(substitute-command-keys
"Return to LaTeX with \\[reftex-index-phrases-save-and-return]"))))