From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii Subject: Re: emacs vs emacs -nw Date: Wed, 31 May 2017 14:30:10 +0300 Message-ID: <83wp8xclh9.fsf@gnu.org> References: <2F1B5934-A250-4A91-82DA-BE33CDF02DAE@gmail.com> <83efv7ftcz.fsf@gnu.org> <20170530183308.GA71827@breton.holly.idiocy.org> <04B0233B-9038-45E1-B406-B7C8D2C2B9AA@gmail.com> <13389382-bcae-0dd4-a8a5-c055edc503e4@orcon.net.nz> <0EDDDB7A-D42A-42B5-8726-59C1B49E0B98@gmail.com> Reply-To: Eli Zaretskii Return-path: In-reply-to: <0EDDDB7A-D42A-42B5-8726-59C1B49E0B98@gmail.com> (message from Jean-Christophe Helary on Wed, 31 May 2017 19:41:00 +0900) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sender: "Emacs-devel" To: Jean-Christophe Helary Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org List-Id: emacs-orgmode.gnu.org > From: Jean-Christophe Helary > Date: Wed, 31 May 2017 19:41:00 +0900 > Cc: Org-mode > > Ok, I just tried something else: > > (setq ns-function-modifier 'meta) and what I get is *very* similar to the issue I have with ESC: > > FN-x correctly "calls" M-x > FN-left in a level 2 header in org mode triggers beginning-of-buffer and *not* org-promote-header. > > So the problem is not limited to ESC, and maybe not limited to org-mode. AFAIR, the remapping of Meta-something to ESC-something happens automatically only for characters, not for function keys. For function keys, this remapping must be set somewhere, or it won't happen. You can see in bindings.el how some of these remappings are set up.