all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: How to translate M-kp-multiply to M-* before key is mapped to function?
Date: Mon, 05 Jul 2004 18:05:28 GMT	[thread overview]
Message-ID: <jwvacyenxga.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: bb3e39cd.0407041351.2c99aa97@posting.google.com

> My problem is, is that kp-multiply is bound to * somewhere down the line,
> but C-kp-multiply, M-kp-multiply and C-M-kp-multiply are not.  I would
> like C-kp-multiply to act like C-*, M-multiply to act like M-*, and
> C-M-kp-multiply to act like C-M-* (without having to rely on information
> to what functions C-*, M-* and C-M-* are bound).

> How to tell keyboard-translate to do just this?

You need something like

  (define-key function-key-map [M-kp-multiply] [?\M-*])
  (define-key function-key-map [C-kp-multiply] [?\C-*])
  (define-key function-key-map [C-M-kp-multiply] [?\C-\M-*])

I don't think there is an easy way to have all combinations mapped in
a single step.  Sadly.


        Stefan

  parent reply	other threads:[~2004-07-05 18:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-02 15:10 How to translate M-kp-multiply to M-* before key is mapped to function? paul
2004-07-02 15:28 ` Kai Grossjohann
2004-07-02 16:32 ` Kevin Rodgers
2004-07-04 21:51   ` paul
2004-07-05  8:01     ` paul
2004-07-05 18:05     ` Stefan Monnier [this message]
2004-07-06  9:23       ` paul
2004-07-07 17:13         ` Stefan Monnier

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=jwvacyenxga.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.