From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: Ctrl-[ ? Date: Fri, 7 Jun 2019 09:54:59 -0400 Message-ID: References: <08AC8151-5911-40FA-8B20-818B839D00AB@traduction-libre.org> <86h892nk2g.fsf@zoho.eu> <9379C01B-80E3-49DD-B830-46CED773DC2C@traduction-libre.org> <83lfydrkde.fsf@gnu.org> <874l51q0s4.fsf@telefonica.net> <83ef45rdij.fsf@gnu.org> <7792DA18-B5EF-48A1-879C-7B2B94A0E1F2@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="149368"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Help Gnu Emacs mailing list To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 07 16:06:36 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.47]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hZFVq-000cfX-Al for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2019 16:06:34 +0200 Original-Received: from localhost ([::1]:51490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZFVo-0002Pr-Il for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2019 10:06:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45302) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZFKw-0001vU-LP for help-gnu-emacs@gnu.org; Fri, 07 Jun 2019 09:55:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZFKv-0003kJ-LB for help-gnu-emacs@gnu.org; Fri, 07 Jun 2019 09:55:18 -0400 Original-Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]:38716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZFKv-0003gj-Di for help-gnu-emacs@gnu.org; Fri, 07 Jun 2019 09:55:17 -0400 Original-Received: by mail-oi1-x236.google.com with SMTP id v186so1483944oie.5 for ; Fri, 07 Jun 2019 06:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SlQ1jaNdqyLHR5rUGKv5hXkphxq7co1hUPO0cQKSWyY=; b=Yj4CHLMkxwtJ7WLgf1XVfnkb0dtRiU42EPFXB2MQg9iaUmqqlIa3hMk3+z0esnwMFj hb7QGaTymforSSc63j1NDG2Ewl/GPZLh6LdpyaMDLEW2z9laX36NhnXVlWX07ilW8b2y Z2GlI0QAbIkyb4mShP8A9fhmwvNtjgB3qiENycL4koUSvdKA7XaNuTkHHql9St4QWA0k ePUU4QwAsKsY3QbsMfK4ZSXeo3hmWDRicQm4BaeMmINd/pzFG3mzkc946TMpPVnfMqBX 3T63ygkUFRstSIuXzFkFrQWKbE1CVk7Cw2wDIskvEoKl3v4veU8PRf+KIv6xAUiZ6U/P 8Qhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SlQ1jaNdqyLHR5rUGKv5hXkphxq7co1hUPO0cQKSWyY=; b=RwhKyHZkZnA3e+EnRG8vaCWjQz0QlYCTWgTrnMpx4Tddl0lQ5BwLWSRqxfQVwL7YIN Sahd/Wdy104+VwwrOlIBnKelE6Oa6dZjCap8QOONAIBL1geUlDu6upXUh+ioTlBvvLw2 wNyKGqq0gCOh3DPQ02ncHFhpa9MNJ1itNWbYNcCUCNEOPykZFtB8CLTXnvxkvAKL/oKm iTS09zwtkHBhcIuO+QtbHQV58TxMtm6M1BvtnD9q/1PVDwITIH4G957sMH7rWACVUxxa q6nGe48khThhslHwOLLzioFU2d1kWE/ObfkPpdTIYc1rIMpwjdbyZUpJos0HT0XOiZV7 WUZg== X-Gm-Message-State: APjAAAXxgllMl1WfUeEnY4zAkcC4yYvxb7fSoqVG6WSwEjll5EDpx3hb tq8QVqWg46hDYGLsBS7R31jPCVNlY3m729H4DUg= X-Google-Smtp-Source: APXvYqxqQhN04lUBWh0AjnuTvwJZmYE1mV9gowGvkK3eiGRzz/JC1/3YpLdfy6ILktWusWsU3IQPAPPe3+g3RPrLONI= X-Received: by 2002:aca:b456:: with SMTP id d83mr3971447oif.177.1559915716384; Fri, 07 Jun 2019 06:55:16 -0700 (PDT) In-Reply-To: <7792DA18-B5EF-48A1-879C-7B2B94A0E1F2@traduction-libre.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.help:120804 Archived-At: On Fri, 7 Jun 2019 at 09:23, Jean-Christophe Helary wrote: > (define-key input-decode-map "\C-[" [C-left-bracket]) > I still don't understand where that "left-bracket" comes from so if you could explain that would be extra nice. It's just an arbitrary symbol choice, you can choose a different one if you like. (define-key input-decode-map "\C-[" [C-open-square]) (define-key global-map [C-open-square] 'forward-char) So if I understand correctly, what happens is that Emacs gets Ctrl+[ from the windowing system, translates that into the ASCII ESC character (aka 27, aka #x1B, aka ^[, aka \C-[). Then runs it through input-decode-map which translates it to C-open-square like we told it to. And then we can use C-open-square in keybindings as normal.