From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Ctrl-[ ? Date: Thu, 06 Jun 2019 22:18:53 +0300 Message-ID: <83o93ar082.fsf@gnu.org> References: <08AC8151-5911-40FA-8B20-818B839D00AB@traduction-libre.org> <6F55E018-B15E-42B0-8794-21F55BBA23D3@traduction-libre.org> <34E3289C-10EE-4A23-AEE4-80D984DB2EDE@gnu.org> <6A538FF9-94C8-491D-B1B9-5C0D09FE7C39@acm.org> <838suesw93.fsf@gnu.org> <3580dbb9-73a8-d26a-5466-5799e3726c34@gmail.com> <83tvd2rd8b.fsf@gnu.org> <83sgsmr5c7.fsf@gnu.org> <83r286r4e6.fsf@gnu.org> <83pnnqr2a0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="264167"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 06 21:27:05 2019 Return-path: Envelope-to: ged-emacs-devel@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 1hYy2T-0016bi-FW for ged-emacs-devel@m.gmane.org; Thu, 06 Jun 2019 21:27:05 +0200 Original-Received: from localhost ([::1]:55758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hYy2S-0006Av-9d for ged-emacs-devel@m.gmane.org; Thu, 06 Jun 2019 15:27:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56260) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hYxuw-0001aV-1J for emacs-devel@gnu.org; Thu, 06 Jun 2019 15:19:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYxul-0006Kv-Th; Thu, 06 Jun 2019 15:19:10 -0400 Original-Received: from [176.228.60.248] (port=3707 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hYxuk-0005Da-Tw; Thu, 06 Jun 2019 15:19:07 -0400 In-reply-to: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Thu, 6 Jun 2019 14:48:38 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237299 Archived-At: > Cc: emacs-devel@gnu.org > From: Clément Pit-Claudel > Date: Thu, 6 Jun 2019 14:48:38 -0400 > > > I'm sorry if that sounded unfriendly. It's just that the answer is so > > obviously YES that I keep thinking I'm missing something in your > > questions. It's like asking whether C-f can be bound to some > > command. > I thought so too, but I didn't manage to make it work. I likely did something silly. I tried this: > > (global-set-key (kbd "ESC") #'forward-char) > > …and all that achieved was to break all keybindings starting with meta. In what buffer? If there's a local binding, it will shadow the global one, so to be sure rebind both. > The reason I'm asking is that, assuming it's possible to rebind ESC, I think there's an easy solution to the OP's question: > > Bind to esc-map > Bind ESC to whatever you want C-[ to do. > > As I understood it, the request was this: > > On 2019-06-06 08:37, Jean-Christophe Helary wrote: > > […] in my other applications I do have the ability to use Ctrl+[ in a way that is not ESC. Like assign C-[ as a shortcut similarly to C-]. > > > > Is there a way to do the same in emacs ? > > Assuming you can bind ESC and separately, the above should work, shouldn't it? Of course. Every key can be rebound in Emacs (except C-g, perhaps).