Function: ad-get-cache-class-id

ad-get-cache-class-id is a byte-compiled function defined in advice.el.gz.

Signature

(ad-get-cache-class-id FUNCTION CLASS)

Documentation

Return the part of FUNCTION's cache id that identifies CLASS.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-get-cache-class-id (function class)
  "Return the part of FUNCTION's cache id that identifies CLASS."
  (let ((cache-id (ad-get-cache-id function)))
    (if (eq class 'before)
	(car cache-id)
      (if (eq class 'around)
	  (nth 1 cache-id)
	(nth 2 cache-id)))))