diff options
| author | Vasilij Schneidermann | 2016-11-04 11:09:31 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-11-04 11:09:31 +0200 |
| commit | 0adefe7ef9f4c23a5c8fef1503bc2b02ea6db8f5 (patch) | |
| tree | ad43bcbb044bb1b50aa84771f2c90b78c2758691 /doc/lispref | |
| parent | e5d0efe8fc4130593a899a9699ed8a95b953df3a (diff) | |
| download | emacs-0adefe7ef9f4c23a5c8fef1503bc2b02ea6db8f5.tar.gz emacs-0adefe7ef9f4c23a5c8fef1503bc2b02ea6db8f5.zip | |
Add 'x-ctrl-keysym' support on X window system
* src/xterm.c (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers):
Support 'x-ctrl-keysym'.
(syms_of_xterm): DEFSYM "ctrl" and put a proper modifier-value
property on it.
<x-ctrl-keysym>: New DEFVAR_LISP.
<x-alt-keysym, x-hyper-keysym, x-meta-keysym, x-super-keysym>: Doc
fix. (Bug#24822)
* etc/NEWS: Mention the addition of 'x-ctrl-keysym'.
* doc/lispref/os.texi (X11 Keysyms): Document 'x-ctrl-keysym'.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/os.texi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 277abb1477d..97b086c0d37 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -2254,14 +2254,16 @@ The variable is always local to the current terminal, and cannot be | |||
| 2254 | buffer-local. @xref{Multiple Terminals}. | 2254 | buffer-local. @xref{Multiple Terminals}. |
| 2255 | @end defvar | 2255 | @end defvar |
| 2256 | 2256 | ||
| 2257 | You can specify which keysyms Emacs should use for the Meta, Alt, Hyper, and Super modifiers by setting these variables: | 2257 | You can specify which keysyms Emacs should use for the Control, Meta, |
| 2258 | Alt, Hyper, and Super modifiers by setting these variables: | ||
| 2258 | 2259 | ||
| 2259 | @defvar x-alt-keysym | 2260 | @defvar x-ctrl-keysym |
| 2261 | @defvarx x-alt-keysym | ||
| 2260 | @defvarx x-meta-keysym | 2262 | @defvarx x-meta-keysym |
| 2261 | @defvarx x-hyper-keysym | 2263 | @defvarx x-hyper-keysym |
| 2262 | @defvarx x-super-keysym | 2264 | @defvarx x-super-keysym |
| 2263 | The name of the keysym that should stand for the Alt modifier | 2265 | The name of the keysym that should stand for the Control modifier |
| 2264 | (respectively, for Meta, Hyper, and Super). For example, here is | 2266 | (respectively, for Alt, Meta, Hyper, and Super). For example, here is |
| 2265 | how to swap the Meta and Alt modifiers within Emacs: | 2267 | how to swap the Meta and Alt modifiers within Emacs: |
| 2266 | @lisp | 2268 | @lisp |
| 2267 | (setq x-alt-keysym 'meta) | 2269 | (setq x-alt-keysym 'meta) |