From xemacs-m  Fri Jun 13 10:09:30 1997
Received: from mail.cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.8.55])
	by xemacs.org (8.8.5/8.8.5) with SMTP id KAA08295
	for <xemacs-beta@xemacs.org>; Fri, 13 Jun 1997 10:09:29 -0500 (CDT)
Received: from calico.cis.ohio-state.edu (calico.cis.ohio-state.edu [164.107.142.11]) by mail.cis.ohio-state.edu (8.6.7/8.6.4) with ESMTP id LAA21177; Fri, 13 Jun 1997 11:09:06 -0400
Received: (ware@localhost) by calico.cis.ohio-state.edu (8.8.0/8.6.4) id LAA10092; Fri, 13 Jun 1997 11:09:05 -0400 (EDT)
To: xemacs-beta@xemacs.org
Subject: Cleaning up local keys from minor mode
From: Pete Ware <ware@cis.ohio-state.edu>
Date: 13 Jun 1997 11:09:03 -0400
Message-ID: <vwmhgf2ee0g.fsf@calico.cis.ohio-state.edu>
Lines: 22
X-Mailer: Gnus v5.4.55/XEmacs 20.3(beta3)

I've been working on gud (aka gdb,dbx,...) mode and in particular
making it so that some of the things that gdbsrc does are available in 
gud et.al. modes.

How does one cleanly remove minor mode maps from a buffer?  Should I
do something like:

	;; create keymap for this buffer, buffer local variable
	(setq gud-this-buffer-map (make-sparse-keymap))
	(set-keymap-parents gud-this-buffer-map
		(list gud-default-map (current-local-map)))
	;; save old local keymap, buffer local variable
	(setq gud-old-local-map (current-local-map))
	(use-local-keymap (gud-this-buffer-map))

then when done:

	(use-local-keymap gud-old-local-map)

and just not worry about any other local keymaps installed since?

--pete

