Function: mailcap-possible-viewers

mailcap-possible-viewers is a byte-compiled function defined in mailcap.el.gz.

Signature

(mailcap-possible-viewers MAJOR MINOR)

Documentation

Return a list of possible viewers from MAJOR for minor type MINOR.

Source Code

;; Defined in /usr/src/emacs/lisp/net/mailcap.el.gz
;;;
;;; The action routines.
;;;

(defun mailcap-possible-viewers (major minor)
  "Return a list of possible viewers from MAJOR for minor type MINOR."
  (let ((result nil))
    (pcase-dolist (`(,type . ,attrs) major)
      (when (or (equal type minor)
                (and minor
                     (string-match (concat "^" type "$") minor)))
	(push attrs result)))
    (nreverse result)))