aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey1995-07-14 21:54:56 +0000
committerTom Tromey1995-07-14 21:54:56 +0000
commitc803d3a7e22a8deb3e9e191771456585848bf930 (patch)
tree8f877a10670679df0c1519625f116d86a807165f
parent37a9a675f246adc906c3dd1f95ada9e1ee36dbd6 (diff)
downloademacs-c803d3a7e22a8deb3e9e191771456585848bf930.tar.gz
emacs-c803d3a7e22a8deb3e9e191771456585848bf930.zip
Changes to make menus work in XEmacs.
From Mike Scheidler <c23mts@kocrsv01.delcoelect.com>
-rw-r--r--lisp/progmodes/tcl.el17
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index 5c52b40c497..a30ac3a3d04 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.39 $ 9;; Version: $Revision: 1.40 $
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/07/09 21:58:03 $|$Revision: 1.39 $|~/modes/tcl.el.Z| 54;; $Date: 1995/07/11 03:13:15 $|$Revision: 1.40 $|~/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.40 1995/07/11 03:13:15 tromey
69;; (tcl-mode): Customize for new dabbrev.
70;;
68;; Revision 1.39 1995/07/09 21:58:03 tromey 71;; Revision 1.39 1995/07/09 21:58:03 tromey
69;; (tcl-do-fill-paragraph): New function. 72;; (tcl-do-fill-paragraph): New function.
70;; (tcl-mode): Set up for paragraph filling. 73;; (tcl-mode): Set up for paragraph filling.
@@ -329,7 +332,7 @@
329 (require 'imenu)) 332 (require 'imenu))
330 ())) 333 ()))
331 334
332(defconst tcl-version "$Revision: 1.39 $") 335(defconst tcl-version "$Revision: 1.40 $")
333(defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") 336(defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>")
334 337
335;; 338;;
@@ -448,8 +451,7 @@ quoted for Tcl.")
448 451
449;; XEmacs menu. 452;; XEmacs menu.
450(defvar tcl-xemacs-menu 453(defvar tcl-xemacs-menu
451 '("Tcl" 454 '(["Beginning of function" tcl-beginning-of-defun t]
452 ["Beginning of function" tcl-beginning-of-defun t]
453 ["End of function" tcl-end-of-defun t] 455 ["End of function" tcl-end-of-defun t]
454 ["Mark function" tcl-mark-defun t] 456 ["Mark function" tcl-mark-defun t]
455 ["Indent region" indent-region (tcl-mark)] 457 ["Indent region" indent-region (tcl-mark)]
@@ -475,7 +477,7 @@ quoted for Tcl.")
475 (define-key map [menu-bar] (make-sparse-keymap)) 477 (define-key map [menu-bar] (make-sparse-keymap))
476 ;; This fails in Emacs 19.22 and earlier. 478 ;; This fails in Emacs 19.22 and earlier.
477 (require 'lmenu) 479 (require 'lmenu)
478 (let ((menu (make-lucid-menu-keymap "Tcl" (cdr tcl-xemacs-menu)))) 480 (let ((menu (make-lucid-menu-keymap "Tcl" tcl-xemacs-menu)))
479 (define-key map [menu-bar tcl] (cons "Tcl" menu)) 481 (define-key map [menu-bar tcl] (cons "Tcl" menu))
480 ;; The following is intended to compute the key sequence 482 ;; The following is intended to compute the key sequence
481 ;; information for the menu. It doesn't work. 483 ;; information for the menu. It doesn't work.
@@ -986,7 +988,8 @@ Commands:
986 (add-menu nil "Tcl" tcl-xemacs-menu))) 988 (add-menu nil "Tcl" tcl-xemacs-menu)))
987 ;; Append Tcl menu to popup menu for XEmacs. 989 ;; Append Tcl menu to popup menu for XEmacs.
988 (if (and tcl-using-xemacs-19 (boundp 'mode-popup-menu)) 990 (if (and tcl-using-xemacs-19 (boundp 'mode-popup-menu))
989 (setq mode-popup-menu tcl-xemacs-menu)) 991 (setq mode-popup-menu
992 (cons (concat mode-name " Mode Commands") tcl-xemacs-menu)))
990 993
991 (run-hooks 'tcl-mode-hook)) 994 (run-hooks 'tcl-mode-hook))
992 995