Function: hfy-prepare-index
hfy-prepare-index is a byte-compiled function defined in
htmlfontify.el.gz.
Signature
(hfy-prepare-index SRCDIR DSTDIR)
Documentation
Return a list of index buffer(s), as determined by hfy-split-index.
SRCDIR and DSTDIR are the source and output directories respectively.
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-prepare-index (srcdir dstdir)
"Return a list of index buffer(s), as determined by `hfy-split-index'.
SRCDIR and DSTDIR are the source and output directories respectively."
(if (not hfy-split-index)
(list (hfy-prepare-index-i srcdir dstdir hfy-index-file nil))
(let ((stub-list nil)
(cache-hash nil)
(index-list nil)
(cache-entry (assoc srcdir hfy-tags-cache)))
(if (and cache-entry (setq cache-hash (cadr cache-entry)))
(maphash
(lambda (K _V)
(let ((stub (upcase (substring K 0 1))))
(if (member stub stub-list)
nil ;; seen this already: NOOP
(setq
stub-list (cons stub stub-list)
index-list (cons (hfy-prepare-index-i srcdir
dstdir
hfy-index-file
stub)
index-list)) )))
cache-hash) )
index-list)))