unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: YH Tan <astyh83@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: 44533@debbugs.gnu.org, Andrii Kolomoiets <andreyk.mad@gmail.com>
Subject: bug#44533: 27.1; Mac special key modifiers not functioning as expected
Date: Tue, 10 Nov 2020 20:09:03 +0800	[thread overview]
Message-ID: <9A29D888-6780-46EC-90ED-36FB9D800480@gmail.com> (raw)
In-Reply-To: <20a05d56-c273-471a-a23c-b9c2f62a8c2c_IMAP_ADDED_MISSING@ORVILLE>



> On Nov 10, 2020, at 19:11, Alan Third <alan@idiocy.org> wrote:
> 
> On Mon, Nov 09, 2020 at 11:23:13PM +0800, YH Tan wrote:
>> The functioning of certain special key modifiers doesn't seem to work as
>> expected in 27.1.
>> 
>> For example, when I do:
>> 
>> (setq mac-left-option-modifier 'nil)
>            ^^^^
>> 
>> nothing happens to the left option key, which retains its meta function. 
> 
> You should be using mac-option-modifier, not mac-left-option-modifier.

This would reset both option keys. I would like to retain meta on the right. 

> 
>> If I use: 
>> 
>> (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. 
>> 
>> The error can be replicated with emacs -Q and evaluating the above
>> functions. 
> 
> I can't replicate this.
> 
>> 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.
> 
> This actually sounds suspiciously like you've remapped fn as option in
> the system preferences. The fn key has some strange behaviours when
> used with "control" keys like the arrows.
> 

Yes. I do have: 

(setq mac-function-modifier 'meta)

which maps function to meta. You mean this can actually interfere with the right-option meta key? 
I’ve been using the same setup for previous versions of emacs without problem. 

> Do you have any other remapping set up? Are you using a USB keyboard?
> 
> -- 
> Alan Third






  reply	other threads:[~2020-11-10 12:09 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
2020-11-10 11:11 ` Alan Third
2020-11-10 12:09   ` YH Tan [this message]
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=9A29D888-6780-46EC-90ED-36FB9D800480@gmail.com \
    --to=astyh83@gmail.com \
    --cc=44533@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=andreyk.mad@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).