From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "lu@luxdo.jp" Newsgroups: gmane.emacs.help Subject: Keymap problem Date: Sun, 15 Jul 2007 20:35:39 +0900 Message-ID: <469A068B.50509@luxdo.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184499402 13688 80.91.229.12 (15 Jul 2007 11:36:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 11:36:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 15 13:36:40 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IA2Oy-00056L-PU for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2007 13:36:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IA2Ox-0002HQ-Vc for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2007 07:36:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IA2Oh-0002Gu-FZ for help-gnu-emacs@gnu.org; Sun, 15 Jul 2007 07:36:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IA2Of-0002GZ-UI for help-gnu-emacs@gnu.org; Sun, 15 Jul 2007 07:36:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IA2Of-0002GQ-LY for help-gnu-emacs@gnu.org; Sun, 15 Jul 2007 07:36:17 -0400 Original-Received: from softbank218118058050.bbtec.net ([218.118.58.50] helo=www.luxdo.jp) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IA2Oe-000758-CY for help-gnu-emacs@gnu.org; Sun, 15 Jul 2007 07:36:17 -0400 Original-Received: from [192.168.11.4] (softbank218118058050.bbtec.net [218.118.58.50]) (authenticated bits=0) by www.luxdo.jp (8.13.1/8.13.1) with ESMTP id l6FBZfeg011297 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 15 Jul 2007 20:35:46 +0900 User-Agent: Thunderbird 2.0.0.4 (X11/20070615) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45690 Archived-At: I use the following code to define a menu named "Pmd" which have only one menu item named "pmd current buffer". The menuitem binded to 'pmd-current-buffer. but the shotcut (C-c p b) does not work,What is the problem? Thanks. (defun pmd-minor-mode (&optional arg) "" (setq pmd-list-entry-keymap (make-keymap)) (use-local-map pmd-list-entry-keymap) (defvar pmd:map nil "The pmd keymap.") (setq pmd:map (make-sparse-keymap)) (define-key pmd:map "\C-cpb" 'pmd-current-buffer) (easy-menu-define pmd:menu (list pmd:map pmd-list-entry-keymap) "pmd menu" '("Pmd" [ "pmd current buffer" pmd-current-buffer t ] ) ) (easy-menu-add pmd:menu pmd:map) ) (add-hook 'jde-mode-hook (function pmd-minor-mode))