Function: hfy-subtract-maps
hfy-subtract-maps is a byte-compiled function defined in
htmlfontify.el.gz.
Signature
(hfy-subtract-maps SRCDIR)
Documentation
Internal function - strips definitions of tags from the instance map.
SRCDIR is the directory being "published".
See also hfy-tags-cache, hfy-tags-rmap.
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-subtract-maps (srcdir)
"Internal function - strips definitions of tags from the instance map.
SRCDIR is the directory being \"published\".
See also `hfy-tags-cache', `hfy-tags-rmap'."
(let ((new-list nil)
(old-list nil)
(def-list nil)
(exc-list nil)
(fwd-map (cadr (assoc srcdir hfy-tags-cache)))
(rev-map (cadr (assoc srcdir hfy-tags-rmap )))
(taglist (cadr (assoc srcdir hfy-tags-sortl))))
(dolist (TAG taglist)
(setq def-list (gethash TAG fwd-map)
old-list (gethash TAG rev-map)
exc-list (mapcar (lambda (P) (list (car P) (cadr P))) def-list)
new-list nil)
(dolist (P old-list)
(or (member (list (car P) (cadr P)) exc-list)
(push P new-list)))
(puthash TAG new-list rev-map))))