Source

speedbar / sb-w3.el

Diff from to

File sb-w3.el

 ;;; sb-w3 --- Speedbar support for w3.
 
-;; Copyright (C) 1997, 1998 Free Software Foundation
+;; Copyright (C) 1997, 1998, 2001, 2002 Free Software Foundation
 ;;
 ;; Author: Eric M. Ludlam <zappo@gnu.org>
 ;; Version: 0.2.1
 ;; 0.2.1 - Added new keymap support
 
 ;;; Code:
-(condition-case nil
-    (require 'w3-imenu)
-  (error nil))
+(eval-and-compile
+  (condition-case nil
+      (require 'w3-imenu)
+    (error nil)))
 (require 'cl)
 (require 'speedbar)
-(require 'imenu)
 
 (defvar w3-speedbar-last-buffer nil
   "The last buffer shown by w3-speedbar.")
     )
   "Extra menu items for w3 mode.")
 
+;;;###autoload
 (defun w3-speedbar-buttons (buffer)
   "Create speedbar buttons for the current web BUFFER displayed in w3 mode."
   (save-excursion