;; Author: Tom Tromey <tromey@busco.lanl.gov>
;; Chris Lindblad <cjl@lcs.mit.edu>
;; Keywords: languages tcl modes
-;; Version: $Revision: 1.7 $
+;; Version: $Revision: 1.8 $
;; This file is part of GNU Emacs.
;; LCD Archive Entry:
;; tcl|Tom Tromey|tromey@busco.lanl.gov|
;; Major mode for editing Tcl|
-;; $Date: 1994/05/03 01:23:42 $|$Revision: 1.7 $|~/modes/tcl.el.Z|
+;; $Date: 1994/05/22 03:38:07 $|$Revision: 1.8 $|~/modes/tcl.el.Z|
;; CUSTOMIZATION NOTES:
;; * tcl-proc-list can be used to customize a list of things that
;; Change log:
;; $Log: tcl.el,v $
+; Revision 1.8 1994/05/22 03:38:07 tromey
+; Fixed menu support.
+;
; Revision 1.7 1994/05/03 01:23:42 tromey
; *** empty log message ***
;
(make-local-variable 'font-lock-keywords)
(setq font-lock-keywords tcl-font-lock-keywords)
+
+ ;; The following only really makes sense under GNU Emacs 19.
(setq imenu-create-index-function 'tcl-imenu-create-index-function)
(make-local-variable 'parse-sexp-ignore-comments)
;; Interfaces to other packages.
;;
-(autoload 'imenu-progress-message "imenu" "" nil 'macro)
+;; When compiling under GNU Emacs, load imenu during compilation. If
+;; you have 19.22 or earlier, comment this out, or get imenu.
+(eval-when-compile
+ (if (and tcl-using-emacs
+ (not tcl-using-lemacs-19))
+ (require 'imenu))
+ ())
(defun tcl-imenu-create-index-function ()
"Generate alist of indices for imenu."