emacs/doc
Mattias Engdegård 215f678c72 Fine-grained NS modifier key settings (bug#38296)
For the ns-KEY-modifier and ns-right-KEY-modifier variables, KEY
being 'control', 'command', 'alternate' and 'function', allow
values on the form (:ordinary SYMBOL :function :SYMBOL :mouse SYMBOL),
so that the key can be used for different modifiers (or none) in
different contexts.  This is particularly useful for using the macOS
Option key for extended character entry while still using it as an
Emacs modifier for function keys and mouse clicks.

* src/nsterm.m (mod_of_kind, right_mod, nil_or_none): Helper functions.
(EV_MODIFIERS2): Add KIND argument.
(EV_MODIFIERS): Adapt call to EV_MODIFIERS2.
(ns_get_shifted_character): Use correct event kind for modifiers.
(ns-alternate-modifier, ns-right-alternate-modifier)
(ns-command-modifier, ns-right-command-modifier)
(ns-control-modifier, ns-right-control-modifier)
(ns-function-modifier): Rewrite doc strings for new data format.
(QCordinary, QCfunction, QCmouse): Define symbols.
* lisp/cus-start.el: Conform to new data types.
* doc/emacs/macos.texi (Mac / GNUstep Basics)
(Mac / GNUstep Customization): Improved documentation.
* etc/NEWS: Mention the change.
2019-11-27 11:14:55 +01:00
..
emacs Fine-grained NS modifier key settings (bug#38296) 2019-11-27 11:14:55 +01:00
lispintro Conditionally omit edition numbers, dates in doc 2019-11-12 11:30:02 -08:00
lispref message uses minibuffer-message in the active minibuffer (bug#17272 bug#19064) 2019-11-27 01:43:49 +02:00
man Enable tab-bar-mode from X resources 2019-10-13 23:56:17 +03:00
misc Remove outdated documentation 2019-11-26 02:36:15 +01:00