diff options
| author | Tom Tromey | 1994-05-22 20:14:59 +0000 |
|---|---|---|
| committer | Tom Tromey | 1994-05-22 20:14:59 +0000 |
| commit | bc4cb3012aab5cbe4f0f0bca2a3112eefeb4bff0 (patch) | |
| tree | 90b05328c428994e901750b37eca24f2ee65a495 /lisp/progmodes | |
| parent | 53ab59b2c27d80a75d7c8925355b1cc183285091 (diff) | |
| download | emacs-bc4cb3012aab5cbe4f0f0bca2a3112eefeb4bff0.tar.gz emacs-bc4cb3012aab5cbe4f0f0bca2a3112eefeb4bff0.zip | |
Compile fixes.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/tcl.el | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index 1a27e7bb188..bb67459b011 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.10 $ | 9 | ;; Version: $Revision: 1.11 $ |
| 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/22 20:02:03 $|$Revision: 1.10 $|~/modes/tcl.el.Z| | 54 | ;; $Date: 1994/05/22 20:12:44 $|$Revision: 1.11 $|~/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,10 @@ | |||
| 65 | 65 | ||
| 66 | ;; Change log: | 66 | ;; Change log: |
| 67 | ;; $Log: tcl.el,v $ | 67 | ;; $Log: tcl.el,v $ |
| 68 | ; Revision 1.11 1994/05/22 20:12:44 tromey | ||
| 69 | ; Fixed mark-defun for 19.23. | ||
| 70 | ; More menu fixes. | ||
| 71 | ; | ||
| 68 | ; Revision 1.10 1994/05/22 20:02:03 tromey | 72 | ; Revision 1.10 1994/05/22 20:02:03 tromey |
| 69 | ; Fixed bug with M-;. | 73 | ; Fixed bug with M-;. |
| 70 | ; Wrote bug-reporting code. | 74 | ; Wrote bug-reporting code. |
| @@ -204,7 +208,16 @@ | |||
| 204 | 208 | ||
| 205 | (require 'comint) | 209 | (require 'comint) |
| 206 | 210 | ||
| 207 | (defconst tcl-version "$Revision: 1.10 $") | 211 | ;; When compiling under GNU Emacs, load imenu during compilation. If |
| 212 | ;; you have 19.22 or earlier, comment this out, or get imenu. | ||
| 213 | (and (fboundp 'eval-when-compile) | ||
| 214 | (eval-when-compile | ||
| 215 | (if (and tcl-using-emacs-19 | ||
| 216 | (not tcl-using-lemacs-19)) | ||
| 217 | (require 'imenu)) | ||
| 218 | ())) | ||
| 219 | |||
| 220 | (defconst tcl-version "$Revision: 1.11 $") | ||
| 208 | (defconst tcl-maintainer "Tom Tromey <tromey@busco.lanl.gov>") | 221 | (defconst tcl-maintainer "Tom Tromey <tromey@busco.lanl.gov>") |
| 209 | 222 | ||
| 210 | ;; | 223 | ;; |
| @@ -1220,15 +1233,6 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 1220 | ;; Interfaces to other packages. | 1233 | ;; Interfaces to other packages. |
| 1221 | ;; | 1234 | ;; |
| 1222 | 1235 | ||
| 1223 | ;; When compiling under GNU Emacs, load imenu during compilation. If | ||
| 1224 | ;; you have 19.22 or earlier, comment this out, or get imenu. | ||
| 1225 | (and (fboundp 'eval-when-compile) | ||
| 1226 | (eval-when-compile | ||
| 1227 | (if (and tcl-using-emacs-19 | ||
| 1228 | (not tcl-using-lemacs-19)) | ||
| 1229 | (require 'imenu)) | ||
| 1230 | ())) | ||
| 1231 | |||
| 1232 | (defun tcl-imenu-create-index-function () | 1236 | (defun tcl-imenu-create-index-function () |
| 1233 | "Generate alist of indices for imenu." | 1237 | "Generate alist of indices for imenu." |
| 1234 | (let ((re (concat tcl-proc-regexp "\\([^ \t\n{]+\\)")) | 1238 | (let ((re (concat tcl-proc-regexp "\\([^ \t\n{]+\\)")) |