all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "lu@luxdo.jp" <lu@luxdo.jp>
To: help-gnu-emacs@gnu.org
Subject: Keymap problem
Date: Sun, 15 Jul 2007 20:35:39 +0900	[thread overview]
Message-ID: <469A068B.50509@luxdo.jp> (raw)

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))

             reply	other threads:[~2007-07-15 11:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-15 11:35 lu [this message]
2007-07-16 10:58 ` Keymap problem lu
  -- strict thread matches above, loose matches on Subject: below --
2005-03-20  5:43 keymap problem no spam
2005-03-20 16:14 ` Joe Corneli
2005-03-20 16:16   ` Joe Corneli
     [not found]   ` <mailman.4482.1111337221.32256.help-gnu-emacs@gnu.org>
2005-03-20 17:47     ` no spam
2005-03-20 18:11       ` Joe Corneli
     [not found]       ` <mailman.4492.1111343289.32256.help-gnu-emacs@gnu.org>
2005-03-20 19:40         ` no spam
2005-03-20 19:54           ` Joe Corneli
     [not found]           ` <mailman.4498.1111349806.32256.help-gnu-emacs@gnu.org>
2005-03-20 20:32             ` no spam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=469A068B.50509@luxdo.jp \
    --to=lu@luxdo.jp \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.