aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey1994-07-26 00:46:07 +0000
committerTom Tromey1994-07-26 00:46:07 +0000
commit597c7ed598b328e04f443c72f7005ed5bed0ff96 (patch)
treec962ab9b26176df1f901f937a600f39221f2c857
parentbd7caa546cbe6bb688b32e2af07b83e18a55e789 (diff)
downloademacs-597c7ed598b328e04f443c72f7005ed5bed0ff96.tar.gz
emacs-597c7ed598b328e04f443c72f7005ed5bed0ff96.zip
Emacs 18 changes from Carl Witty.
-rw-r--r--lisp/progmodes/tcl.el27
1 files changed, 17 insertions, 10 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index 3e328d322c7..e33a216689c 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.20 $ 9;; Version: $Revision: 1.21 $
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/06/05 16:57:22 $|$Revision: 1.20 $|~/modes/tcl.el.Z| 54;; $Date: 1994/07/14 22:49:21 $|$Revision: 1.21 $|~/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.21 1994/07/14 22:49:21 tromey
69;; Added ";;;###autoload" comments where appropriate.
70;;
68; Revision 1.20 1994/06/05 16:57:22 tromey 71; Revision 1.20 1994/06/05 16:57:22 tromey
69; tcl-current-word does the right thing in inferior-tcl-mode. 72; tcl-current-word does the right thing in inferior-tcl-mode.
70; 73;
@@ -185,6 +188,8 @@
185;; h9118101@hkuxa.hku.hk (Yip Chi Lap [Beta]) 188;; h9118101@hkuxa.hku.hk (Yip Chi Lap [Beta])
186;; Pertti Tapio Kasanen <ptk@delta.hut.fi> 189;; Pertti Tapio Kasanen <ptk@delta.hut.fi>
187;; schmid@fb3-s7.math.TU-Berlin.DE (Gregor Schmid) 190;; schmid@fb3-s7.math.TU-Berlin.DE (Gregor Schmid)
191;; warsaw@nlm.nih.gov (Barry A. Warsaw)
192;; Carl Witty <cwitty@ai.mit.edu>
188 193
189;; KNOWN BUGS: 194;; KNOWN BUGS:
190;; * indent-region should skip blank lines. (It does in v19, so I'm 195;; * indent-region should skip blank lines. (It does in v19, so I'm
@@ -240,9 +245,9 @@
240 "Nil unless using Emacs 19 (Lucid or FSF).") 245 "Nil unless using Emacs 19 (Lucid or FSF).")
241 246
242;; FIXME this will break on Emacs 19.100. 247;; FIXME this will break on Emacs 19.100.
243(defconst tcl-using-emacs-19.23 248(defconst tcl-using-emacs-19-23
244 (string-match "19\\.\\(2[3-9]\\|[3-9][0-9]\\)" emacs-version) 249 (string-match "19\\.\\(2[3-9]\\|[3-9][0-9]\\)" emacs-version)
245 "Nil unless using Emacs 19.23 or later.") 250 "Nil unless using Emacs 19-23 or later.")
246 251
247(defconst tcl-using-lemacs-19 (string-match "Lucid" emacs-version) 252(defconst tcl-using-lemacs-19 (string-match "Lucid" emacs-version)
248 "Nil unless using Lucid Emacs).") 253 "Nil unless using Lucid Emacs).")
@@ -258,7 +263,7 @@
258 (require 'imenu)) 263 (require 'imenu))
259 ())) 264 ()))
260 265
261(defconst tcl-version "$Revision: 1.20 $") 266(defconst tcl-version "$Revision: 1.21 $")
262(defconst tcl-maintainer "Tom Tromey <tromey@busco.lanl.gov>") 267(defconst tcl-maintainer "Tom Tromey <tromey@busco.lanl.gov>")
263 268
264;; 269;;
@@ -721,10 +726,10 @@ An end of a defun is found by moving forward from the beginning of one."
721 (tcl-beginning-of-defun) 726 (tcl-beginning-of-defun)
722 (backward-paragraph)) 727 (backward-paragraph))
723 728
724;; In GNU Emacs 19.23 and later, mark-defun works as advertised. I 729;; In GNU Emacs 19-23 and later, mark-defun works as advertised. I
725;; don't know about Lucid Emacs, so for now it and Emacs 18 just lose. 730;; don't know about Lucid Emacs, so for now it and Emacs 18 just lose.
726(fset 'tcl-mark-defun 731(fset 'tcl-mark-defun
727 (if tcl-using-emacs-19.23 732 (if tcl-using-emacs-19-23
728 'mark-defun 733 'mark-defun
729 'tcl-internal-mark-defun)) 734 'tcl-internal-mark-defun))
730 735
@@ -1330,7 +1335,9 @@ Returns nil if line starts inside a string, t if in a comment."
1330 (progn 1335 (progn
1331 (delete-region (point) inferior-tcl-delete-prompt-marker) 1336 (delete-region (point) inferior-tcl-delete-prompt-marker)
1332 (set-marker inferior-tcl-delete-prompt-marker nil))))) 1337 (set-marker inferior-tcl-delete-prompt-marker nil)))))
1333 (comint-output-filter proc string)) 1338 (if tcl-using-emacs-19
1339 (comint-output-filter proc string)
1340 (funcall comint-output-filter string)))
1334 1341
1335(defun tcl-send-string (proc string) 1342(defun tcl-send-string (proc string)
1336 (save-excursion 1343 (save-excursion
@@ -1927,7 +1934,7 @@ The first line is assumed to look like \"#!.../program ...\"."
1927 (interactive "@e") 1934 (interactive "@e")
1928 (and tcl-using-emacs-19 1935 (and tcl-using-emacs-19
1929 (not tcl-using-lemacs-19) 1936 (not tcl-using-lemacs-19)
1930 (if tcl-using-emacs-19.23 1937 (if tcl-using-emacs-19-23
1931 (require 'lmenu) 1938 (require 'lmenu)
1932 ;; CAVEATS: 1939 ;; CAVEATS:
1933 ;; * lmenu.el provides 'menubar, which is bogus. 1940 ;; * lmenu.el provides 'menubar, which is bogus.
@@ -1987,7 +1994,7 @@ The first line is assumed to look like \"#!.../program ...\"."
1987 tcl-prompt-regexp 1994 tcl-prompt-regexp
1988 inferior-tcl-source-command 1995 inferior-tcl-source-command
1989 tcl-using-emacs-19 1996 tcl-using-emacs-19
1990 tcl-using-emacs-19.23 1997 tcl-using-emacs-19-23
1991 tcl-using-lemacs-19 1998 tcl-using-lemacs-19
1992 tcl-proc-list 1999 tcl-proc-list
1993 tcl-proc-regexp 2000 tcl-proc-regexp