Function: reftex-index-make-replace-string

reftex-index-make-replace-string is a byte-compiled function defined in reftex-index.el.gz.

Signature

(reftex-index-make-replace-string MACRO-FMT MATCH INDEX-KEY &optional REPEAT MATHP)

Documentation

Return the string which can be used as replacement.

Treats the logical and for index phrases.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
(defun reftex-index-make-replace-string (macro-fmt match index-key
                                                   &optional repeat mathp)
  "Return the string which can be used as replacement.
Treats the logical `and' for index phrases."
  (let ((index-keys (split-string (or index-key match)
                                  reftex-index-phrases-logical-and-regexp)))
    (concat
     (mapconcat (lambda (x)
                  (format macro-fmt
                          (format (if mathp reftex-index-math-format "%s") x)))
                index-keys "")
   (if repeat (reftex-index-simplify-phrase match) ""))))