diff options
author | Tom Tromey <[email protected]> | 1994-05-22 05:26:51 +0000 |
---|---|---|
committer | Tom Tromey <[email protected]> | 1994-05-22 05:26:51 +0000 |
commit | a3dfa2c01534577c075e890b7ebbc6b843ae38d0 (patch) | |
tree | 599647221b17999e2157b709852a69c23784a793 /lisp | |
parent | 9aa88f3e283b1366cdd34dbecb2091400bbd1199 (diff) |
Fixes for imenu.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/progmodes/tcl.el | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index b86de1402b..f6128a53b4 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el @@ -6,7 +6,7 @@ ;; Author: Tom Tromey <[email protected]> ;; Chris Lindblad <[email protected]> ;; Keywords: languages tcl modes -;; Version: $Revision: 1.7 $ +;; Version: $Revision: 1.8 $ ;; This file is part of GNU Emacs. @@ -51,7 +51,7 @@ ;; LCD Archive Entry: ;; tcl|Tom Tromey|[email protected]| ;; 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 @@ -65,6 +65,9 @@ ;; 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 *** ; @@ -767,6 +770,8 @@ Commands: (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) @@ -1203,7 +1208,13 @@ Returns nil if line starts inside a string, t if in a comment." ;; 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." |