Function: speedbar-item-byte-compile

speedbar-item-byte-compile is an interactive and byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-item-byte-compile)

Documentation

Byte compile the item under the cursor or mouse if it is a Lisp file.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-item-byte-compile ()
  "Byte compile the item under the cursor or mouse if it is a Lisp file."
  (interactive)
  (let ((f (speedbar-line-file))
	(sf (selected-frame)))
    (if (and (file-exists-p f) (string-match "\\.el\\'" f))
	(progn
	  (dframe-select-attached-frame speedbar-frame)
          (byte-compile-file f)
	  (select-frame sf)
	  (speedbar-reset-scanners)))
    ))