Function: registry-lookup-secondary

registry-lookup-secondary is a byte-compiled function defined in registry.el.gz.

Signature

(registry-lookup-secondary ARG &rest ARGS)

Implementations

((db registry-db) tracksym &optional create) in `registry.el'.

Search for TRACKSYM in the registry-db DB. When CREATE is not nil, create the secondary index hash table if needed.

Source Code

;; Defined in /usr/src/emacs/lisp/registry.el.gz
(cl-defmethod registry-lookup-secondary ((db registry-db) tracksym
					 &optional create)
  "Search for TRACKSYM in the registry-db DB.
When CREATE is not nil, create the secondary index hash table if needed."
  (let ((h (gethash tracksym (oref db tracker))))
    (if h
	h
      (when create
	(puthash tracksym
		 (make-hash-table :size 800 :rehash-size 2.0 :test 'equal)
		 (oref db tracker))
	(gethash tracksym (oref db tracker))))))