From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: litter@graffiti.net (paul) Newsgroups: gmane.emacs.help Subject: Re: How to translate M-kp-multiply to M-* before key is mapped to function? Date: 6 Jul 2004 02:23:31 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <40E58E31.60508@yahoo.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1089106101 5924 80.91.224.253 (6 Jul 2004 09:28:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2004 09:28:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 06 11:28:14 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhmFK-0008De-00 for ; Tue, 06 Jul 2004 11:28:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BhmHK-00022R-Jl for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jul 2004 05:30:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews2.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 194.171.252.100 Original-X-Trace: posting.google.com 1089105811 12460 127.0.0.1 (6 Jul 2004 09:23:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 6 Jul 2004 09:23:31 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:124148 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19479 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19479 Stefan Monnier wrote in message news:... > > 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 Hi Stefan, Thanks for your reply. I don't mind having to do multiple steps for this. Unfortunately, the solution you propose is the one I tried too. It doesn't work. Although it indeed remaps the key unto the correct key, it does *NOT* call the function bound to that key. This is due to the order in which this remapping is done, it happens *after* the effects of global-set-key, as far as I can tell (at least it does for M-*, pop-tag-mark). Regards, Paul