Mercurial > emacs
comparison lisp/progmodes/tcl.el @ 16170:2e26cb0991de
(tcl-indent-command): Use insert-tab, not self-insert-command.
author | Tom Tromey <tromey@redhat.com> |
---|---|
date | Thu, 12 Sep 1996 17:02:52 +0000 |
parents | 070f7cf3c1a6 |
children | f0078b7750b7 |
comparison
equal
deleted
inserted
replaced
16169:fb8897dbca30 | 16170:2e26cb0991de |
---|---|
4 | 4 |
5 ;; Maintainer: Tom Tromey <tromey@busco.lanl.gov> | 5 ;; Maintainer: Tom Tromey <tromey@busco.lanl.gov> |
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.49 $ | 9 ;; Version: $Revision: 1.50 $ |
10 | 10 |
11 ;; This file is part of GNU Emacs. | 11 ;; This file is part of GNU Emacs. |
12 | 12 |
13 ;; GNU Emacs is free software; you can redistribute it and/or modify | 13 ;; GNU Emacs is free software; you can redistribute it and/or modify |
14 ;; it under the terms of the GNU General Public License as published by | 14 ;; it under the terms of the GNU General Public License as published by |
49 ;;; Commentary: | 49 ;;; Commentary: |
50 | 50 |
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: 1995/12/07 18:27:47 $|$Revision: 1.49 $|~/modes/tcl.el.Z| | 54 ;; $Date: 1996/03/23 05:14:50 $|$Revision: 1.50 $|~/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 |
58 ;; "define" other things. Eg in my project I put "defvar" in this | 58 ;; "define" other things. Eg in my project I put "defvar" in this |
59 ;; list. | 59 ;; list. |
63 ;; * tcl-type-alist can be used to minimally customize indentation | 63 ;; * tcl-type-alist can be used to minimally customize indentation |
64 ;; according to context. | 64 ;; according to context. |
65 | 65 |
66 ;; Change log: | 66 ;; Change log: |
67 ;; $Log: tcl.el,v $ | 67 ;; $Log: tcl.el,v $ |
68 ;; Revision 1.50 1996/03/23 05:14:50 tromey | |
69 ;; (tcl-using-emacs-19): Work with XEmacs 20.0. From Ben Wing. | |
70 ;; | |
68 ;; Revision 1.49 1995/12/07 18:27:47 tromey | 71 ;; Revision 1.49 1995/12/07 18:27:47 tromey |
69 ;; (add-log-tcl-defun): Don't use tcl-beginning-of-defun; just go to end | 72 ;; (add-log-tcl-defun): Don't use tcl-beginning-of-defun; just go to end |
70 ;; of line before searching. | 73 ;; of line before searching. |
71 ;; | 74 ;; |
72 ;; Revision 1.48 1995/12/07 18:18:21 tromey | 75 ;; Revision 1.48 1995/12/07 18:18:21 tromey |
365 (if (and (string-match "19\\." emacs-version) | 368 (if (and (string-match "19\\." emacs-version) |
366 (not (string-match "XEmacs" emacs-version))) | 369 (not (string-match "XEmacs" emacs-version))) |
367 (require 'imenu)) | 370 (require 'imenu)) |
368 ())) | 371 ())) |
369 | 372 |
370 (defconst tcl-version "$Revision: 1.49 $") | 373 (defconst tcl-version "$Revision: 1.50 $") |
371 (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") | 374 (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") |
372 | 375 |
373 ;; | 376 ;; |
374 ;; User variables. | 377 ;; User variables. |
375 ;; | 378 ;; |
1096 (cond | 1099 (cond |
1097 ((not tcl-tab-always-indent) | 1100 ((not tcl-tab-always-indent) |
1098 ;; Indent if in indentation area, otherwise insert TAB. | 1101 ;; Indent if in indentation area, otherwise insert TAB. |
1099 (if (<= (current-column) (current-indentation)) | 1102 (if (<= (current-column) (current-indentation)) |
1100 (tcl-indent-line) | 1103 (tcl-indent-line) |
1101 (self-insert-command arg))) | 1104 (insert-tab arg))) |
1102 ((eq tcl-tab-always-indent t) | 1105 ((eq tcl-tab-always-indent t) |
1103 ;; Always indent. | 1106 ;; Always indent. |
1104 (tcl-indent-line)) | 1107 (tcl-indent-line)) |
1105 (t | 1108 (t |
1106 ;; "Perl-mode" style TAB command. | 1109 ;; "Perl-mode" style TAB command. |