Function: gnus-button-handle-library

gnus-button-handle-library is a byte-compiled function defined in gnus-art.el.gz.

Signature

(gnus-button-handle-library URL)

Documentation

Call locate-library when pushing the corresponding URL button.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-art.el.gz
(defun gnus-button-handle-library (url)
  "Call `locate-library' when pushing the corresponding URL button."
  (gnus-message 9 "url=`%s'" url)
  (let* ((lib (locate-library url))
	 (file (replace-regexp-in-string "\\.elc" ".el" (or lib ""))))
    (if (not lib)
	(gnus-message 1 "Cannot locate library `%s'." url)
      (find-file-read-only file))))