GNU bug report logs -
#38296
Allow Option key to be modifier for non-char key and mouse events
Previous Next
Reported by: Mattias Engdegård <mattiase <at> acm.org>
Date: Wed, 20 Nov 2019 11:41:01 UTC
Severity: normal
Tags: patch
Done: Mattias Engdegård <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
21 nov. 2019 kl. 22.12 skrev Alan Third <alan <at> idiocy.org>:
> Do you think this functionality will only be required for the
> alt/option key or will there be a demand to add it for command too? In
> my experience the characters available via command are rather more
> obscure, but I’ve little experience with non‐UK keyboards.
Looking at Mitsuharu Yamamoto's Mac port made me change my mind: it solves the problem by allowing the variables to have values on the form (:ordinary SYMBOL :function SYMBOL :mouse SYMBOL), defining each modifier key separately for ordinary keys, function keys and mouse events.
This is more flexible, and turned out to be rather simple to implement, so I think this is better than adding variables. I did it for all ns-KEY-modifier and ns-right-KEY-modifier variables (KEY being control, command, alternate and function), since it seemed silly not to. The relevant macOS-specific documentation was improved as well.
Doing so also reduces gratuitous incompatibility with the Mac port.
Here is the new patch. Maybe we can get it done before Eli branches off Emacs 27.
[0001-Fine-grained-NS-modifier-key-settings-bug-38296.patch (application/octet-stream, attachment)]
This bug report was last modified 5 years and 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.