unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrii Kolomoiets <andreyk.mad@gmail.com>
To: YH Tan <astyh83@gmail.com>
Cc: 44533@debbugs.gnu.org
Subject: bug#44533: 27.1; Mac special key modifiers not functioning as expected
Date: Tue, 10 Nov 2020 11:55:23 +0200	[thread overview]
Message-ID: <m2wnyto7sk.fsf@gmail.com> (raw)
In-Reply-To: <ED2E9441-302C-4D7F-85E2-4E01027E7205@gmail.com> (YH Tan's message of "Tue, 10 Nov 2020 08:54:12 +0800")

[Please keep debbugs email in the recipient list on reply]

YH Tan <astyh83@gmail.com> writes:

> option+up/down/left/right doesn’t do anything on its own in the system. 
>
> In org-mode ‘C-h k’ just ignores the meta key and returns the arrow or
> RET key (in the case of org-insert-heading). Only things like ‘M-x’
> works with the reset right option in this case.

I can't reproduce this in GNU Emacs 27.1 (build 1,
x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build
18G95)):

emacs -Q
M-: (setq mac-option-modifier 'nil)
M-: (setq mac-right-option-modifier 'meta)
Now 'C-h k' describes up/down/left/right keys alone when I press them
with the left option key and M-up/down/left/right keys when I press them
with the right option key.

>> On Nov 10, 2020, at 04:14, Andrii Kolomoiets <andreyk.mad@gmail.com> wrote:
>> 
>> YH Tan <astyh83@gmail.com> writes:
>> 
>>> (setq mac-option-modifier 'nil)
>>> (setq mac-right-option-modifier 'meta)
>>> 
>>> the left option key is revived, but the right option key fails to capture
>>> some of the regular meta keybindings, such as org-do-promote/demote,
>>> org-move-subtree-up/down etc. 
>> 
>> Is it possible that those keybindings are handled by your OS?
>> 
>> For example, I'm using following settings:
>> 
>> (custom-set-variables
>> '(ns-command-modifier 'control)
>> '(ns-right-command-modifier 'super))
>> 
>> When I press Command-TAB, Emacs doesn't "see" C-TAB (or s-TAB) because
>> Command-TAB is used by OS to switch to another application.
>> 
>> Use 'C-h k' to see what key is pressed and what command it invokes.





  parent reply	other threads:[~2020-11-10  9:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09 15:23 bug#44533: 27.1; Mac special key modifiers not functioning as expected YH Tan
2020-11-09 20:14 ` Andrii Kolomoiets
     [not found]   ` <ED2E9441-302C-4D7F-85E2-4E01027E7205@gmail.com>
2020-11-10  9:55     ` Andrii Kolomoiets [this message]
2020-11-10 11:11 ` Alan Third
2020-11-10 12:09   ` YH Tan
2020-11-10 13:11     ` Alan Third
2020-11-13 16:47       ` Alan Third
2020-12-14 20:39         ` Alan Third

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wnyto7sk.fsf@gmail.com \
    --to=andreyk.mad@gmail.com \
    --cc=44533@debbugs.gnu.org \
    --cc=astyh83@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).