Function: reftex-ensure-index-support

reftex-ensure-index-support is an autoloaded and byte-compiled function defined in reftex-parse.el.gz.

Signature

(reftex-ensure-index-support &optional ABORT)

Documentation

When index support is turned off, ask to turn it on and set the current prefix argument so that reftex-access-scan-info will rescan the entire document.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-parse.el.gz
;;;###autoload
(defun reftex-ensure-index-support (&optional abort)
  "When index support is turned off, ask to turn it on and
set the current prefix argument so that `reftex-access-scan-info'
will rescan the entire document."
  (cond
   (reftex-support-index t)
   ((y-or-n-p "Turn on index support and rescan entire document? ")
    (setq reftex-support-index 'demanded
          current-prefix-arg '(16)))
   (t (if abort
          (error "No index support")
        (message "No index support")
        (ding)
        (sit-for 1)))))