Function: woman-write-directory-cache
woman-write-directory-cache is a byte-compiled function defined in
woman.el.gz.
Signature
(woman-write-directory-cache)
Documentation
Save the directory and topic cache.
It is saved to the file named by the variable woman-cache-filename.
Source Code
;; Defined in /usr/src/emacs/lisp/woman.el.gz
(equal woman-cached-data (woman-cached-data)))) ; cache valid
(defun woman-write-directory-cache ()
"Save the directory and topic cache.
It is saved to the file named by the variable `woman-cache-filename'."
(if woman-cache-filename
(with-current-buffer (generate-new-buffer "WoMan tmp buffer")
;; Make a temporary buffer; name starting with space "hides" it.
(let ((standard-output (current-buffer))
(backup-inhibited t))
;; (switch-to-buffer standard-output t) ; only for debugging
(buffer-disable-undo standard-output)
(princ
";;; WoMan directory and topic cache -- generated automatically\n")
(print
;; For data validity check:
`(setq woman-cached-data ',(woman-cached-data)))
(print
`(setq woman-expanded-directory-path
',woman-expanded-directory-path))
(print
`(setq woman-topic-all-completions
',woman-topic-all-completions))
(write-file woman-cache-filename) ; write CURRENT buffer
(kill-buffer standard-output)
))))