* Re: emacs vs emacs -nw
[not found] ` <CAP_d_8V6WJ6d=T5ZjhJWVSx74EBMExch4AL8pVWFLNBC71+9VA@mail.gmail.com>
@ 2017-05-31 10:04 ` Jean-Christophe Helary
2017-05-31 10:41 ` Jean-Christophe Helary
[not found] ` <f073b2979fd243238ad49a59acc3fa4e@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
1 sibling, 1 reply; 6+ messages in thread
From: Jean-Christophe Helary @ 2017-05-31 10:04 UTC (permalink / raw)
To: emacs-devel@gnu.org; +Cc: Org-mode
> On May 31, 2017, at 18:41, Yuri Khan <yuri.v.khan@gmail.com> wrote:
>
> On Wed, May 31, 2017 at 3:58 PM, Jean-Christophe Helary
> <jean.christophe.helary@gmail.com> wrote:
>
>>> Could you provide an example and/or a recipe to demonstrate the issue?
>>
>> • Open an org file with a few headers and different header levels.
>> • Select a lower level header
>> • Hit M-left
>
> I believe this last step may be a bit unclear and misleading. Today,
> Meta is not a real key. You only get it via emulation from ESC or a
> modifier key, normally Alt on PCs. I don’t know the convention on Mac.
Ooops, you're right. Indeed.
On my machine I *systematically* use ESC for META.
> On X11/GNU/Linux, I get header promotion with Alt+Left but word
> navigation on Esc Left.
Now that I think about it, I just tried this:
(setq ns-right-command-modifier 'meta)
And I get the expected behavior in GUI emacs. So it's really an issue about ESC that is not recognized in GUI mode for *some* bindings in org-mode.
Jean-Christophe
>
>> Expected result:
>> • the header is promoted
>>
>> Result in GUI Emacs (Aquamacs too)
>> • The cursor jumps to the beginning of the previous word
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs vs emacs -nw
2017-05-31 10:04 ` emacs vs emacs -nw Jean-Christophe Helary
@ 2017-05-31 10:41 ` Jean-Christophe Helary
2017-05-31 11:05 ` Yuri Khan
2017-05-31 11:30 ` Eli Zaretskii
0 siblings, 2 replies; 6+ messages in thread
From: Jean-Christophe Helary @ 2017-05-31 10:41 UTC (permalink / raw)
To: emacs-devel@gnu.org; +Cc: Org-mode
> On May 31, 2017, at 19:04, Jean-Christophe Helary <jean.christophe.helary@gmail.com> wrote:
>> On X11/GNU/Linux, I get header promotion with Alt+Left but word
>> navigation on Esc Left.
>
> Now that I think about it, I just tried this:
>
> (setq ns-right-command-modifier 'meta)
>
> And I get the expected behavior in GUI emacs. So it's really an issue about ESC that is not recognized in GUI mode for *some* bindings in 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.
Jean-Christophe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs vs emacs -nw
[not found] ` <f073b2979fd243238ad49a59acc3fa4e@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-05-31 10:54 ` Eric S Fraga
0 siblings, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2017-05-31 10:54 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
On Wednesday, 31 May 2017 at 10:04, Jean-Christophe Helary wrote:
[...]
> And I get the expected behavior in GUI emacs. So it's really an issue
> about ESC that is not recognized in GUI mode for *some* bindings in
> org-mode.
I can actually confirm this on quite recent org (as well as 8.2.10 as
bundled with emacs 26.x) on Linux as well.
Comparing Alt-left with the ESC key followed by left arrow gives this
using C-h c:
: <M-left> runs the command org-metaleft
: ESC <left> (translated from <escape> <left>) runs the command backward-word
with emacs -Q in GUI mode. Have not tried terminal mode.
As Jean-Christophe has said, this seems to be independent of the window
manager. For completeness, I am using ratpoison.
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-425-gf4fca1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs vs emacs -nw
2017-05-31 10:41 ` Jean-Christophe Helary
@ 2017-05-31 11:05 ` Yuri Khan
2017-05-31 11:30 ` Eli Zaretskii
1 sibling, 0 replies; 6+ messages in thread
From: Yuri Khan @ 2017-05-31 11:05 UTC (permalink / raw)
To: Jean-Christophe Helary; +Cc: Org-mode, emacs-devel@gnu.org
On Wed, May 31, 2017 at 5:41 PM, Jean-Christophe Helary
<jean.christophe.helary@gmail.com> wrote:
> FN-left in a level 2 header in org mode triggers beginning-of-buffer and *not* org-promote-header.
The Fn key is a whole different issue. It’s likely that your system is
reporting a Home key code when you press Fn+Left.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs vs emacs -nw
2017-05-31 10:41 ` Jean-Christophe Helary
2017-05-31 11:05 ` Yuri Khan
@ 2017-05-31 11:30 ` Eli Zaretskii
2017-05-31 11:38 ` Jean-Christophe Helary
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2017-05-31 11:30 UTC (permalink / raw)
To: Jean-Christophe Helary; +Cc: emacs-orgmode, emacs-devel
> From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
> Date: Wed, 31 May 2017 19:41:00 +0900
> Cc: Org-mode <emacs-orgmode@gnu.org>
>
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs vs emacs -nw
2017-05-31 11:30 ` Eli Zaretskii
@ 2017-05-31 11:38 ` Jean-Christophe Helary
0 siblings, 0 replies; 6+ messages in thread
From: Jean-Christophe Helary @ 2017-05-31 11:38 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-orgmode, emacs-devel
> On May 31, 2017, at 20:30, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
>> Date: Wed, 31 May 2017 19:41:00 +0900
>> Cc: Org-mode <emacs-orgmode@gnu.org>
>>
>> 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.
Yes, I realized after Yuri's comment that the comparison with ESC was a bit far-fetched.
Jean-Christophe
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-05-31 11:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2F1B5934-A250-4A91-82DA-BE33CDF02DAE@gmail.com>
[not found] ` <83efv7ftcz.fsf@gnu.org>
[not found] ` <C48A4C54-7335-4854-9329-47A4ADFFD122@gmail.com>
[not found] ` <20170530183308.GA71827@breton.holly.idiocy.org>
[not found] ` <04B0233B-9038-45E1-B406-B7C8D2C2B9AA@gmail.com>
[not found] ` <13389382-bcae-0dd4-a8a5-c055edc503e4@orcon.net.nz>
[not found] ` <D696C81B-49E1-417D-8BEF-6BA0FB30E418@gmail.com>
[not found] ` <CAP_d_8V6WJ6d=T5ZjhJWVSx74EBMExch4AL8pVWFLNBC71+9VA@mail.gmail.com>
2017-05-31 10:04 ` emacs vs emacs -nw Jean-Christophe Helary
2017-05-31 10:41 ` Jean-Christophe Helary
2017-05-31 11:05 ` Yuri Khan
2017-05-31 11:30 ` Eli Zaretskii
2017-05-31 11:38 ` Jean-Christophe Helary
[not found] ` <f073b2979fd243238ad49a59acc3fa4e@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-31 10:54 ` Eric S Fraga
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).