From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: oitofelix@riseup.net (Bruno =?utf-8?Q?F=C3=A9lix?= Rezende Ribeiro) Newsgroups: gmane.emacs.help Subject: Re: Help with setting a key (C- moving a full word to the right) Date: Sat, 08 Jun 2013 21:46:11 -0300 Message-ID: References: <87ip1psptx.fsf@VLAN-3434.student.uu.se> <87r4gdwtbm.fsf@VLAN-3434.student.uu.se> <878v2kmurx.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1370740041 3236 80.91.229.3 (9 Jun 2013 01:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Jun 2013 01:07:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 03:07:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UlU6L-0003U8-95 for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2013 03:07:21 +0200 Original-Received: from localhost ([::1]:50026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlU6K-0005wa-OU for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Jun 2013 21:07:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlTig-0003qO-Cg for help-gnu-emacs@gnu.org; Sat, 08 Jun 2013 20:42:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlTie-0003OA-1I for help-gnu-emacs@gnu.org; Sat, 08 Jun 2013 20:42:54 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:58240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlTid-0003NW-R1 for help-gnu-emacs@gnu.org; Sat, 08 Jun 2013 20:42:51 -0400 Original-Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 03A8A49048 for ; Sat, 8 Jun 2013 17:42:43 -0700 (PDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: oitofelix@fruiteater.riseup.net) with ESMTPSA id 6D3F6C96 In-Reply-To: <878v2kmurx.fsf@VLAN-3434.student.uu.se> (Emanuel Berg's message of "Sat, 08 Jun 2013 18:28:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-Virus-Scanned: clamav-milter 0.97.8 at mx1 X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 198.252.153.129 X-Mailman-Approved-At: Sat, 08 Jun 2013 21:07:10 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91403 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Emanuel Berg writes: > Eli Zaretskii writes: > >>>> I don't know what is a "Linux VT", but I suspect that it's a >>>> text-mode terminal. In which case Emacs simply doesn't get >>>> reported that C-right was pressed. Try "C-h l" (that's the >>>> letter ell, not the digit one), and see if Emacs at all sees >>>> the Ctrl modifier. >>>=20 >>> It doesn't, like I said :) >> >> If Emacs doesn't see the Ctrl-right key, then the solution to >> this, if any, is not on the Emacs level. > > Correct. There was a guy who taught me a method, with which I setup > the backtab in Emacs (which was also unnoticed at first). If he is > reading this, perhaps he can tell us more. Here I made it work. My kernel keymap snippet: =2D---- kernel keymap begin ----- control keycode 105 =3D U+0117 # control keycode 106 =3D U+0118 # control keycode 103 =3D U+0119 # control keycode 108 =3D U+011A # =2D---- kernel keymap end ----- My emacs keymap snippet: =2D---- emacs keymap begin ----- (define-key input-decode-map [?\u0117] [C-left]) (define-key input-decode-map [?\u0118] [C-right]) (define-key input-decode-map [?\u0119] [C-up]) (define-key input-decode-map [?\u011A] [C-down]) =2D---- emacs keymap end ----- Notice that it is not necessary to explicit bind each emacs control-arrow sequence to the respective motion function because it is already done by default. Hope it helps. =2D-=20 ,=3D ,-_-. =3D. Bruno F=C3=A9lix Rezende Ribeiro (oitofelix) [0x28D618AF] ((_/)o o(\_)) There is no system but GNU; `-'(. .)`-' Linux-libre is just one of its kernels; \_/ All software should be free as in freedom; --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRs9BTAAoJECe5xv0o1hivn5QH/Azejb5XZ5EsSH9rbG6Ua4Xi GdsQXcKBkkJugASUeZpKodw2wz68tFAojmR0mFTA2eYSdMr1wu1xy8qVnm/q/nTd ubh+Ndj06vtNCDvZ1fp8yQBogMYSJt6gAJ/+7liDpQlI0YyQ+z1kl+Dn+p2oz9Rh ZjweWBWb2eh3i60tSEyU7HC/M5HKxVm0q41lyq5ATJJcnoyiK3H17gdN/aQCNpsg QtETNWUtfntIBkoP8STQGqcfjCB+0xWMQY99s9Ot6jpk4fEWZnD11l869M49ZsbJ W90pcfKIx8jxm1dOo1kyHrKpxUWRfCiIzx1LUjmGTfzL7CbFIAj11LeszYqh0Mw= =O+ES -----END PGP SIGNATURE----- --=-=-=--