From c803d3a7e22a8deb3e9e191771456585848bf930 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 14 Jul 1995 21:54:56 +0000 Subject: [PATCH] Changes to make menus work in XEmacs. From Mike Scheidler --- lisp/progmodes/tcl.el | 17 ++++++++++------- 1 file 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 @@ ;; Author: Tom Tromey ;; Chris Lindblad ;; Keywords: languages tcl modes -;; Version: $Revision: 1.39 $ +;; Version: $Revision: 1.40 $ ;; This file is part of GNU Emacs. @@ -51,7 +51,7 @@ ;; LCD Archive Entry: ;; tcl|Tom Tromey|tromey@busco.lanl.gov| ;; Major mode for editing Tcl| -;; $Date: 1995/07/09 21:58:03 $|$Revision: 1.39 $|~/modes/tcl.el.Z| +;; $Date: 1995/07/11 03:13:15 $|$Revision: 1.40 $|~/modes/tcl.el.Z| ;; CUSTOMIZATION NOTES: ;; * tcl-proc-list can be used to customize a list of things that @@ -65,6 +65,9 @@ ;; Change log: ;; $Log: tcl.el,v $ +;; Revision 1.40 1995/07/11 03:13:15 tromey +;; (tcl-mode): Customize for new dabbrev. +;; ;; Revision 1.39 1995/07/09 21:58:03 tromey ;; (tcl-do-fill-paragraph): New function. ;; (tcl-mode): Set up for paragraph filling. @@ -329,7 +332,7 @@ (require 'imenu)) ())) -(defconst tcl-version "$Revision: 1.39 $") +(defconst tcl-version "$Revision: 1.40 $") (defconst tcl-maintainer "Tom Tromey ") ;; @@ -448,8 +451,7 @@ quoted for Tcl.") ;; XEmacs menu. (defvar tcl-xemacs-menu - '("Tcl" - ["Beginning of function" tcl-beginning-of-defun t] + '(["Beginning of function" tcl-beginning-of-defun t] ["End of function" tcl-end-of-defun t] ["Mark function" tcl-mark-defun t] ["Indent region" indent-region (tcl-mark)] @@ -475,7 +477,7 @@ quoted for Tcl.") (define-key map [menu-bar] (make-sparse-keymap)) ;; This fails in Emacs 19.22 and earlier. (require 'lmenu) - (let ((menu (make-lucid-menu-keymap "Tcl" (cdr tcl-xemacs-menu)))) + (let ((menu (make-lucid-menu-keymap "Tcl" tcl-xemacs-menu))) (define-key map [menu-bar tcl] (cons "Tcl" menu)) ;; The following is intended to compute the key sequence ;; information for the menu. It doesn't work. @@ -986,7 +988,8 @@ Commands: (add-menu nil "Tcl" tcl-xemacs-menu))) ;; Append Tcl menu to popup menu for XEmacs. (if (and tcl-using-xemacs-19 (boundp 'mode-popup-menu)) - (setq mode-popup-menu tcl-xemacs-menu)) + (setq mode-popup-menu + (cons (concat mode-name " Mode Commands") tcl-xemacs-menu))) (run-hooks 'tcl-mode-hook)) -- 2.39.2