From: Mirko <mvukovic@nycap.rr.com>
To: help-gnu-emacs@gnu.org
Subject: Re: trouble binding to <next> & <prior>
Date: Wed, 9 Jul 2008 09:32:14 -0700 (PDT) [thread overview]
Message-ID: <18e1e72f-faa6-4628-8e40-81dec803acc0@l42g2000hsc.googlegroups.com> (raw)
In-Reply-To: f0a6a169-ed89-46a4-bb20-5e1c17a46bf1@x41g2000hsb.googlegroups.com
On Jul 7, 11:34 pm, Xah <xah...@gmail.com> wrote:
> On Jul 7, 11:59 am, Mirko <mvuko...@nycap.rr.com> wrote:
>
> > Nope. This is what I have
>
> > (define-key iop-alert-mode-map (kbd "<prior>") 'view-previous-entry)
>
> For debugging purposes, you might try first to replace the
> “(kbd "<prior>")” with just “[prior]”. If that still doesn't work, at
> least you get rid of one possbibility of problem.
>
> Also, simply try to bind something to the PageUp key, e.g.
> (global-set-key (kbd "<next>") 'find-file)
> and see if your emacs recognize that at all.
>
> What build or platform is your emacs on?
>
> Few monhts ago i tried “Emacs.app” (the emacs build for Mac OS X and
> NeXTStep, based on cacoa), it has a known bug that it won't recognize
> keybindings on the numerical keypad. The author said he doesn't know
> what's the problem or how to fix. (“Emacs.app” has several major bugs
> that i couldn't adapt it as my emacs. The oher one is unicode ...)
>
> Xah
> ∑http://xahlee.org/
>
> ☄
OK, there were a couple of problems:
1) old *.elc file
2) I was creating a derived mode
3) Outside of the define-derived-mode expression, I was separately
using the construct:
(unless iop-alert-mode-map
(setq iop-alert-mode-map (copy-keymap text-mode-map))
(define-key iop-alert-mode-map (kbd "<prior>") 'view-previous-entry)
...
So, what was happening most likely was that the derived mode was
creating the mode-map, and this prevented the (unless iop-alert-mode-
map from operating.
I moved the define-key inside the define-derived-mode expression.
Thank you all for putting up with this.
Mirko
next prev parent reply other threads:[~2008-07-09 16:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 15:37 trouble binding to <next> & <prior> Mirko
2008-07-07 16:59 ` Pascal J. Bourguignon
2008-07-07 17:32 ` Mirko
2008-07-07 18:09 ` Lennart Borgman (gmail)
[not found] ` <mailman.14341.1215454191.18990.help-gnu-emacs@gnu.org>
2008-07-07 18:59 ` Mirko
2008-07-07 20:04 ` Lennart Borgman (gmail)
2008-07-08 2:00 ` Kevin Rodgers
2008-07-08 3:34 ` Xah
2008-07-09 16:32 ` Mirko [this message]
[not found] ` <mailman.14345.1215461048.18990.help-gnu-emacs@gnu.org>
2008-07-08 12:49 ` Mirko
2008-07-08 17:26 ` Lennart Borgman (gmail)
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=18e1e72f-faa6-4628-8e40-81dec803acc0@l42g2000hsc.googlegroups.com \
--to=mvukovic@nycap.rr.com \
--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.