From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: how to get Meta+y to be Meta+Tab Date: Sun, 26 Oct 2008 15:11:33 +0100 Message-ID: References: <601c6f74-a6ab-434b-954a-3663a58c9f60@t39g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225030332 8287 80.91.229.12 (26 Oct 2008 14:12:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2008 14:12:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 26 15:13:14 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ku6Mj-0001BV-GG for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Oct 2008 15:13:13 +0100 Original-Received: from localhost ([127.0.0.1]:60856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ku6Ld-0004wR-GO for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Oct 2008 10:12:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ku6LL-0004w4-25 for help-gnu-emacs@gnu.org; Sun, 26 Oct 2008 10:11:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ku6LE-0004sh-N7 for help-gnu-emacs@gnu.org; Sun, 26 Oct 2008 10:11:46 -0400 Original-Received: from [199.232.76.173] (port=58803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ku6LE-0004se-H3 for help-gnu-emacs@gnu.org; Sun, 26 Oct 2008 10:11:40 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:40840) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ku6LE-0002n4-3f for help-gnu-emacs@gnu.org; Sun, 26 Oct 2008 10:11:40 -0400 Original-Received: from thursday (BAI1d72.bai.pppool.de [77.136.29.114]) by dd18200.kasserver.com (Postfix) with ESMTP id 69C0B1820E63B; Sun, 26 Oct 2008 15:11:37 +0100 (CET) In-Reply-To: (Xah's message of "Sat\, 25 Oct 2008 14\:40\:58 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59171 Archived-At: Xah wrote: > Xah wrote: > =C2=ABsuppose i want to make Meta+y to function as pressing Meta+Tab. > intuitively, i do this: (keyboard-translate ?\M-y ?\M-9) but that does > not work.=C2=BB > > B T Raven wrote: > =C2=ABMaybe (global-unset-key KEY)and then (global-set-key)? Some minor > modes might override the new setting but probably most won't.=C2=BB It would be nice if you could use a more common quoting mechanism (like a ">" prefix), so syntax highlighting picks up the quotation. It makes reading much easier. > am pretty sure that global-set-key cannot be used for the > functionality of keyboard-translate. In a way it can. You can bind it to a macro: (global-set-key "\M-y" "\M-\t") Using `keyboard-translate' is generally a little risky, because it will change the key in all places. So people wouldn't be able to do use C-c M-y anymore. So I would only use it to fix keyboard issues. You can also write a function like this: (defun do-what-backspace-does () (interactive) (call-interactively (key-binding "\C-?"))) I've found that one to be the most reliable solution. regards, Nikolaj Schumacher