Subject: bug#38296: closed (Re: bug#38296: Allow Option key to be modifier for non-char key and mouse events)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 27 Nov 2019 10:51:03 +0000

Your bug report

#38296: Allow Option key to be modifier for non-char key and mouse events

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
38296: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38296
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#38296: Allow Option key to be modifier for non-char key and mouse events
From: Mattias Engdegård <[email-masked]>
To: Alan Third <[email-masked]>, Eli Zaretskii <[email-masked]>
Cc: [email-masked]
Date: Wed, 27 Nov 2019 11:50:19 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

26 nov. 2019 kl. 23.03 skrev Alan Third <[email-masked]>:

> Having works, but the phrase is ‘of the form’.

Right you are, 'of' it is then.

27 nov. 2019 kl. 05.51 skrev Eli Zaretskii <[email-masked]>:

> Btw, "customised" is not the US English spelling; please fix before
> pushing.

Thank you, fixed. I'm not used to writing in that dialect.

Pushed to master.

Subject: Allow Option key to be modifier for non-char key and mouse events
From: Mattias Engdegård <[email-masked]>
To: [email-masked]
Date: Wed, 20 Nov 2019 11:55:04 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Mac users, especially those of us with a non-US keyboard, need the Option keys for entering various characters, and thus set 'ns-alternate-modifier' to nil, or use 'ns-right-alternate-modifier' to employ only one of them for this purpose. However, this prevents use of that key as modifier for function keys (arrows, backspace etc) or mouse actions.

This patch adds the variable 'ns-alternate-modifier-char-entry' which, when non-nil, inhibits the Option key translation to Emacs modifiers for character keys but allows it for any other event. For example, setting

(setq ns-alternate-modifier 'super)
(setq ns-alternate-modifier-char-entry t)

makes Option act as Super with function keys and mouse clicks, but retains the standard macOS semantics for character entry (for example, Option + p = π).