Function: mh-index-read-hashtable

mh-index-read-hashtable is a byte-compiled function defined in mh-search.el.gz.

Signature

(mh-index-read-hashtable PROC)

Documentation

From BUFFER read a hash table serialized as a list.

PROC is used to convert the value to actual data.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
(defun mh-index-read-hashtable (proc)
  "From BUFFER read a hash table serialized as a list.
PROC is used to convert the value to actual data."
  (cl-loop with table = (make-hash-table :test #'equal)
           for pair in (read (current-buffer))
           do (setf (gethash (car pair) table) (funcall proc (cdr pair)))
           finally return table))