Function: gnus--insert-random-face-with-type

gnus--insert-random-face-with-type is a byte-compiled function defined in gnus-fun.el.gz.

Signature

(gnus--insert-random-face-with-type FUN TYPE)

Documentation

Get a random face using FUN and insert it as a header TYPE.

For instance, to insert an X-Face use gnus-random-x-face as FUN
  and "X-Face" as TYPE.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-fun.el.gz
(defun gnus--insert-random-face-with-type (fun type)
  "Get a random face using FUN and insert it as a header TYPE.

For instance, to insert an X-Face use `gnus-random-x-face' as FUN
  and \"X-Face\" as TYPE."
  (let ((data (funcall fun)))
    (save-excursion
      (if data
          (progn (message-goto-eoh)
                 (insert  type ": " data "\n"))
	(message
	 "No face returned by the function %s." (symbol-name fun))))))