Function: reftex-index-analyze-entry
reftex-index-analyze-entry is an interactive and byte-compiled
function defined in reftex-index.el.gz.
Signature
(reftex-index-analyze-entry DATA)
Documentation
Split index context so that key, attribute and visual values are accessible individually.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-index.el.gz
(defun reftex-index-analyze-entry (data)
"Split index context so that key, attribute and visual
values are accessible individually."
(interactive)
(let* ((arg (nth 5 data))
(context (nth 2 data))
(sc reftex-index-special-chars)
(boa (if (string-match (regexp-quote (concat "{" arg "}")) context)
(1+ (match-beginning 0))
(error "Something is wrong here")))
(eoa (1- (match-end 0)))
(boactual (if (string-match (concat "[^" (nth 3 sc) "]" (nth 2 sc))
context boa)
(1+ (match-beginning 0))
eoa))
(boattr (if (string-match (concat "[^" (nth 3 sc) "]" (nth 1 sc))
context boa)
(1+ (match-beginning 0))
boactual))
(pre (substring context 0 boa))
(key (substring context boa boattr))
(attr (substring context boattr boactual))
(actual (substring context boactual eoa))
(post (substring context eoa)))
(list pre key attr actual post)))