From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: M-<, M->, M-% ... Date: Wed, 26 Mar 2008 21:27:45 +0000 Message-ID: <20080326212745.GA2309@muc.de> References: <200803260100.m2Q10ZkO005153@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206566012 21908 80.91.229.12 (26 Mar 2008 21:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2008 21:13:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xavier Maillard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 26 22:13:59 2008 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 1JecwD-0005aZ-1J for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Mar 2008 22:13:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jecvb-0007kD-5T for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Mar 2008 17:12:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JecvH-0007iz-Of for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 17:12:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JecvG-0007hg-Pu for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 17:12:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JecvG-0007hG-GJ for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 17:12:38 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JecvG-0002rp-50 for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 17:12:38 -0400 Original-Received: (qmail 45348 invoked by uid 3782); 26 Mar 2008 21:12:31 -0000 Original-Received: from acm.muc.de (p57AF6C84.dip.t-dialin.net [87.175.108.132]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 26 Mar 2008 22:12:29 +0100 Original-Received: (qmail 3238 invoked by uid 1000); 26 Mar 2008 21:27:45 -0000 Content-Disposition: inline In-Reply-To: <200803260100.m2Q10ZkO005153@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:52722 Archived-At: Hi, Xavier, On Wed, Mar 26, 2008 at 02:00:38AM +0100, Xavier Maillard wrote: > Hi, > What is the best way to invoke the above mentionned keys in the > linux console (I really mean the console, not a xterm) ? There are two things you need to do. You need to enhance your keyboard layout to generate distinct codes for these keys (dumpkeys and loadkeys are your friends), and you need to tell Emacs how to interpret them. A fully general method for getting this going was worked out a decade ago by Kalle Niemitalo. I've been using it for many years. This scheme allows you such key sequences as C-S-, too. The particular keys you're asking about, M-%, M-<, and M->, are relatively simple on an English keyboard layout. I'm not sure how it would be on a (?)French layout. Here is the bit of my file boottime.kmap.gz that gives M-< keycode 51 = comma less alt keycode 51 = Meta_comma shift alt keycode 51 = Meta_less <============== control shift keycode 51 = F205 # ACM 21/12/03 The "string" F205 (for C-<), lower down in the file, looks like this: string F205 = "\033[1><" # Control+Shift+, (C-<) Two Emacs lisp files interpret the 7 new prefixes, like that in F205. For example, [1> is interpreted as [2> [3> + [4> ..... They put extra bindings in the function key map. If you would like, I could send you all these files by private email, though you will have to adapt my English keyboard layout to your own one. It will take, perhaps, an evening or two to get working satisfactorally. > Regards > Xavier -- Alan Mackenzie (Nuremberg).