aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey1994-05-22 05:26:51 +0000
committerTom Tromey1994-05-22 05:26:51 +0000
commita3dfa2c01534577c075e890b7ebbc6b843ae38d0 (patch)
tree599647221b17999e2157b709852a69c23784a793
parent9aa88f3e283b1366cdd34dbecb2091400bbd1199 (diff)
downloademacs-a3dfa2c01534577c075e890b7ebbc6b843ae38d0.tar.gz
emacs-a3dfa2c01534577c075e890b7ebbc6b843ae38d0.zip
Fixes for imenu.
-rw-r--r--lisp/progmodes/tcl.el17
1 files changed, 14 insertions, 3 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index b86de1402b2..f6128a53b4a 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -6,7 +6,7 @@
6;; Author: Tom Tromey <tromey@busco.lanl.gov> 6;; Author: Tom Tromey <tromey@busco.lanl.gov>
7;; Chris Lindblad <cjl@lcs.mit.edu> 7;; Chris Lindblad <cjl@lcs.mit.edu>
8;; Keywords: languages tcl modes 8;; Keywords: languages tcl modes
9;; Version: $Revision: 1.7 $ 9;; Version: $Revision: 1.8 $
10 10
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
12 12
@@ -51,7 +51,7 @@
51;; LCD Archive Entry: 51;; LCD Archive Entry:
52;; tcl|Tom Tromey|tromey@busco.lanl.gov| 52;; tcl|Tom Tromey|tromey@busco.lanl.gov|
53;; Major mode for editing Tcl| 53;; Major mode for editing Tcl|
54;; $Date: 1994/05/03 01:23:42 $|$Revision: 1.7 $|~/modes/tcl.el.Z| 54;; $Date: 1994/05/22 03:38:07 $|$Revision: 1.8 $|~/modes/tcl.el.Z|
55 55
56;; CUSTOMIZATION NOTES: 56;; CUSTOMIZATION NOTES:
57;; * tcl-proc-list can be used to customize a list of things that 57;; * tcl-proc-list can be used to customize a list of things that
@@ -65,6 +65,9 @@
65 65
66;; Change log: 66;; Change log:
67;; $Log: tcl.el,v $ 67;; $Log: tcl.el,v $
68; Revision 1.8 1994/05/22 03:38:07 tromey
69; Fixed menu support.
70;
68; Revision 1.7 1994/05/03 01:23:42 tromey 71; Revision 1.7 1994/05/03 01:23:42 tromey
69; *** empty log message *** 72; *** empty log message ***
70; 73;
@@ -767,6 +770,8 @@ Commands:
767 770
768 (make-local-variable 'font-lock-keywords) 771 (make-local-variable 'font-lock-keywords)
769 (setq font-lock-keywords tcl-font-lock-keywords) 772 (setq font-lock-keywords tcl-font-lock-keywords)
773
774 ;; The following only really makes sense under GNU Emacs 19.
770 (setq imenu-create-index-function 'tcl-imenu-create-index-function) 775 (setq imenu-create-index-function 'tcl-imenu-create-index-function)
771 (make-local-variable 'parse-sexp-ignore-comments) 776 (make-local-variable 'parse-sexp-ignore-comments)
772 777
@@ -1203,7 +1208,13 @@ Returns nil if line starts inside a string, t if in a comment."
1203;; Interfaces to other packages. 1208;; Interfaces to other packages.
1204;; 1209;;
1205 1210
1206(autoload 'imenu-progress-message "imenu" "" nil 'macro) 1211;; When compiling under GNU Emacs, load imenu during compilation. If
1212;; you have 19.22 or earlier, comment this out, or get imenu.
1213(eval-when-compile
1214 (if (and tcl-using-emacs
1215 (not tcl-using-lemacs-19))
1216 (require 'imenu))
1217 ())
1207 1218
1208(defun tcl-imenu-create-index-function () 1219(defun tcl-imenu-create-index-function ()
1209 "Generate alist of indices for imenu." 1220 "Generate alist of indices for imenu."