diff options
| author | Tom Tromey | 1995-06-27 20:06:05 +0000 |
|---|---|---|
| committer | Tom Tromey | 1995-06-27 20:06:05 +0000 |
| commit | a7efef53dc63f360e31c586f302f99f2a7e65e71 (patch) | |
| tree | 1cc0c4b8971b941227bea6e9969179365da528de | |
| parent | a0defa814a592dfe2b5c827c51fef54b5400c639 (diff) | |
| download | emacs-a7efef53dc63f360e31c586f302f99f2a7e65e71.tar.gz emacs-a7efef53dc63f360e31c586f302f99f2a7e65e71.zip | |
More changes for itcl.
Bug fixes for Emacs 19.29.
| -rw-r--r-- | lisp/progmodes/tcl.el | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index 7ed50d46be8..dc53b8f4336 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.32 $ | 9 | ;; Version: $Revision: 1.33 $ |
| 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: 1995/05/11 22:12:49 $|$Revision: 1.32 $|~/modes/tcl.el.Z| | 54 | ;; $Date: 1995/06/27 20:01:29 $|$Revision: 1.33 $|~/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,12 @@ | |||
| 65 | 65 | ||
| 66 | ;; Change log: | 66 | ;; Change log: |
| 67 | ;; $Log: tcl.el,v $ | 67 | ;; $Log: tcl.el,v $ |
| 68 | ;; Revision 1.33 1995/06/27 20:01:29 tromey | ||
| 69 | ;; (tcl-set-proc-regexp): Allow leading spaces. | ||
| 70 | ;; (tcl-proc-list): Changes for itcl. | ||
| 71 | ;; (tcl-typeword-list): Ditto. | ||
| 72 | ;; (tcl-keyword-list): Ditto. | ||
| 73 | ;; | ||
| 68 | ;; Revision 1.32 1995/05/11 22:12:49 tromey | 74 | ;; Revision 1.32 1995/05/11 22:12:49 tromey |
| 69 | ;; (tcl-type-alist): Include entry for "proc". | 75 | ;; (tcl-type-alist): Include entry for "proc". |
| 70 | ;; | 76 | ;; |
| @@ -303,7 +309,7 @@ | |||
| 303 | (require 'imenu)) | 309 | (require 'imenu)) |
| 304 | ())) | 310 | ())) |
| 305 | 311 | ||
| 306 | (defconst tcl-version "$Revision: 1.32 $") | 312 | (defconst tcl-version "$Revision: 1.33 $") |
| 307 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") | 313 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") |
| 308 | 314 | ||
| 309 | ;; | 315 | ;; |
| @@ -486,10 +492,7 @@ quoted for Tcl.") | |||
| 486 | ;; Make menus. | 492 | ;; Make menus. |
| 487 | (if (and tcl-using-emacs-19 (not tcl-using-xemacs-19)) | 493 | (if (and tcl-using-emacs-19 (not tcl-using-xemacs-19)) |
| 488 | (progn | 494 | (progn |
| 489 | ;; In FSF 19, there is no standard button for the popup menu, | 495 | (tcl-add-fsf-menu tcl-mode-map)))) |
| 490 | ;; so I use shift-button2. | ||
| 491 | (tcl-add-fsf-menu tcl-mode-map) | ||
| 492 | (define-key tcl-mode-map [S-down-mouse-2] 'tcl-popup-menu)))) | ||
| 493 | 496 | ||
| 494 | (defun tcl-fill-inferior-map () | 497 | (defun tcl-fill-inferior-map () |
| 495 | (define-key inferior-tcl-mode-map "\t" 'comint-dynamic-complete) | 498 | (define-key inferior-tcl-mode-map "\t" 'comint-dynamic-complete) |
| @@ -625,6 +628,7 @@ This variable is generally set from `tcl-proc-regexp', | |||
| 625 | (defvar tcl-type-alist | 628 | (defvar tcl-type-alist |
| 626 | '( | 629 | '( |
| 627 | ("proc" nil tcl-expr tcl-commands) | 630 | ("proc" nil tcl-expr tcl-commands) |
| 631 | ("method" nil tcl-expr tcl-commands) | ||
| 628 | ("expr" tcl-expr) | 632 | ("expr" tcl-expr) |
| 629 | ("catch" tcl-commands) | 633 | ("catch" tcl-commands) |
| 630 | ("if" tcl-expr "then" tcl-commands) | 634 | ("if" tcl-expr "then" tcl-commands) |
| @@ -938,7 +942,7 @@ Commands: | |||
| 938 | (not (assoc "Tcl" current-menubar))) | 942 | (not (assoc "Tcl" current-menubar))) |
| 939 | (progn | 943 | (progn |
| 940 | (set-buffer-menubar (copy-sequence current-menubar)) | 944 | (set-buffer-menubar (copy-sequence current-menubar)) |
| 941 | (add-menu nil "Tcl" tcl-lucid-menu))) | 945 | (add-menu nil "Tcl" tcl-xemacs-menu))) |
| 942 | ;; Append Tcl menu to popup menu for XEmacs. | 946 | ;; Append Tcl menu to popup menu for XEmacs. |
| 943 | (if (and tcl-using-xemacs-19 (boundp 'mode-popup-menu)) | 947 | (if (and tcl-using-xemacs-19 (boundp 'mode-popup-menu)) |
| 944 | (setq mode-popup-menu tcl-xemacs-menu)) | 948 | (setq mode-popup-menu tcl-xemacs-menu)) |