[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble binding to <next> & <prior>
From: |
Mirko |
Subject: |
Re: trouble binding to <next> & <prior> |
Date: |
Mon, 7 Jul 2008 10:32:03 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jul 7, 12:59 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Mirko <mvuko...@nycap.rr.com> writes:
> > Hello,
>
> > I have a following keybinding, parts of which do not work. In
> > particular I am trying to bind view-previous-entry to the page-up key
> > on the standard PC keyboard (using Emacs 22.1). I used both h-k and h-
> > l to determine that this key is identified with "<prior>" & <next>".
>
> > (defvar iop-alert-mode-map nil
> > "Keymap for IOP-alert mode")
> > (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)
> > (define-key iop-alert-mode-map (kbd "<next>") 'view-next-entry)
> > (define-key iop-alert-mode-map (kbd "d") 'mark-entry-for-deletion)
> > (define-key iop-alert-mode-map "m" 'mark-entry-for-save))
>
> > When in a buffer with iop-alert mode, doing h-m gives me the following
> > output on keybindings:
> > ... stuff skipped
> > < n e Prefix Command
> > < p r Prefix Command
> > < n e x Prefix Command
> > < p r i Prefix Command
> > < n e x t Prefix Command
> > < p r i o Prefix Command
> > < n e x t > view-next-entry
> > < p r i o r Prefix Command
> > < p r i o r > view-previous-entry
>
> > It seems <prior> and <next> are bound to the character sequence
> > "<prior>" and "<next>". Pressing those characters will invoke the
> > commands. But pressing the Page-up/down keys will not.
>
> > Indeed, doing a h-k shows that page-up/down are still bound to scroll
> > up/down.
>
> > What am I doing wrong?
>
> emacs-version --> "22.2.1"
> (kbd "<prior>") --> [prior]
>
> if you don't get this vector with one symbol for (kbd "<prior>"),
> indeed you have a problem.
>
> --
> __Pascal Bourguignon__ http://www.informatimago.com/
>
> WARNING: This product warps space and time in its vicinity.
I tried that, and I get exactly as you suggested.
(kbd "<prior>") --> [prior]
Mirko
- trouble binding to <next> & <prior>, Mirko, 2008/07/07
- Re: trouble binding to <next> & <prior>, Pascal J. Bourguignon, 2008/07/07
- Re: trouble binding to <next> & <prior>,
Mirko <=
- Re: trouble binding to <next> & <prior>, Lennart Borgman (gmail), 2008/07/07
- Message not available
- Re: trouble binding to <next> & <prior>, Mirko, 2008/07/07
- Re: trouble binding to <next> & <prior>, Lennart Borgman (gmail), 2008/07/07
- Re: trouble binding to <next> & <prior>, Kevin Rodgers, 2008/07/07
- Re: trouble binding to <next> & <prior>, Xah, 2008/07/07
- Re: trouble binding to <next> & <prior>, Mirko, 2008/07/09
- Message not available
- Re: trouble binding to <next> & <prior>, Mirko, 2008/07/08
- Re: trouble binding to <next> & <prior>, Lennart Borgman (gmail), 2008/07/08