From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: gmane.emacs.help Subject: Re: Fwd: C-[ is undefined Date: Fri, 27 Jul 2018 02:33:01 +0100 Organization: A noiseless patient Spider Message-ID: <87y3dx31ki.fsf@bsb.me.uk> References: <8736w65fz2.fsf@bsb.me.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532655209 10675 195.159.176.226 (27 Jul 2018 01:33:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2018 01:33:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 27 03:33:25 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1firdE-0002ff-Jt for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jul 2018 03:33:24 +0200 Original-Received: from localhost ([::1]:38671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1firfJ-00004x-K9 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 21:35:33 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 58 Original-Injection-Info: reader02.eternal-september.org; posting-host="054865feb4dae337a1609ac01e09ac3c"; logging-data="14873"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ucs3VWVMRHuHEIulp4rvaQtVuOoZtPRA=" Cancel-Lock: sha1:eYGHtYgkHkwUGgjGJ901S1RgIi4= sha1:dpO7YdaIjM66HE5iC0JGyyI1tOI= X-BSB-Auth: 1.f5af28f20f7e6790dfdc.20180727023301BST.87y3dx31ki.fsf@bsb.me.uk Original-Xref: usenet.stanford.edu gnu.emacs.help:223471 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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:117596 Archived-At: Michael Brand writes: > Hi Ben > > On Thu, Jul 26, 2018 at 6:38 AM, Ben Bacarisse wrote: >> The following message is a courtesy copy of an article >> that has been posted to gnu.emacs.help as well. >> >> Michael Brand writes: >> >>> There seems to be no answer yet but I am still stuck and would >>> appreciate any help to get further. >> >> I'll make a remark, not sure if it will help... >> >>> ---------- Forwarded message ---------- >>> From: Michael Brand >>> Date: Sat, Jul 7, 2018 at 1:52 PM >>> Subject: C-[ is undefined >>> To: help-gnu-emacs@gnu.org >>> >>> Short story: ~C-x @ c [~ results in "C-[ is undefined" but I expected >>> it to be the Meta prefix like in for example ~C-[ t~ for ~M-t~. >> >> I would expect C-x @ c [ to be the same as C-[ > > Did you try? For me it is not the same which is what I wanted to say > in the first place. Yes, I tried it, but my interpretation of the result ("C-[" is undefined) was that C-x @ c [ was a way to generate a "key" that could not otherwise be typed. That's kind of what happens. For example, you can bind C-[ this way and still use C-[ to get the ESC- prefix. However, that seems like an unlikely explanation! It is probably something to do with translated key sequences. ESC and C-[ are not exactly the same, but I am not expert enough to explain the way in which they differ. >> and not anything to do with a Meta modifier. > > What do you mean by this when ~C-[ t~ is the same as ~M-t~? I expected > that ~C-x @ c [ t~ to be the same as ~C-[ t~ which is the same as > ~M-t~. Ah, yes, I see. C-x @ c [ is obviously not identical to C-[ in some subtle way. Or, more likely, C-[ is special in some way. When you list the key bindings (C-h b) there is no entry for C-[ but ESC appears twice -- once as a prefix and then again in the place you'd expect C-[ to appear. Anyway, the long and the short of it is that I can't help which is a shame since I now actually understand the issue you are having! -- Ben.