diff options
| author | Alan Third | 2016-08-29 19:32:40 +0100 |
|---|---|---|
| committer | Alan Third | 2016-08-29 19:32:40 +0100 |
| commit | bcd2d911f35fd28f0a0051f237dc76f15cea4b4a (patch) | |
| tree | a5cb943ec40d2acfdb91121c73931c04cc9b8af3 | |
| parent | 1d0d6d9296414686ce17b8731fba66c56f904ee8 (diff) | |
| download | emacs-bcd2d911f35fd28f0a0051f237dc76f15cea4b4a.tar.gz emacs-bcd2d911f35fd28f0a0051f237dc76f15cea4b4a.zip | |
Clarify docstrings
* src/nsterm.m: Clarified that ns-x-modifier variables require a symbol.
| -rw-r--r-- | src/nsterm.m | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 03bb0115509..ceda30bd46f 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -8739,14 +8739,16 @@ syms_of_nsterm (void) | |||
| 8739 | 8739 | ||
| 8740 | DEFVAR_LISP ("ns-alternate-modifier", ns_alternate_modifier, | 8740 | DEFVAR_LISP ("ns-alternate-modifier", ns_alternate_modifier, |
| 8741 | "This variable describes the behavior of the alternate or option key.\n\ | 8741 | "This variable describes the behavior of the alternate or option key.\n\ |
| 8742 | Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ | 8742 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8743 | that key.\n\ | ||
| 8743 | Set to none means that the alternate / option key is not interpreted by Emacs\n\ | 8744 | Set to none means that the alternate / option key is not interpreted by Emacs\n\ |
| 8744 | at all, allowing it to be used at a lower level for accented character entry."); | 8745 | at all, allowing it to be used at a lower level for accented character entry."); |
| 8745 | ns_alternate_modifier = Qmeta; | 8746 | ns_alternate_modifier = Qmeta; |
| 8746 | 8747 | ||
| 8747 | DEFVAR_LISP ("ns-right-alternate-modifier", ns_right_alternate_modifier, | 8748 | DEFVAR_LISP ("ns-right-alternate-modifier", ns_right_alternate_modifier, |
| 8748 | "This variable describes the behavior of the right alternate or option key.\n\ | 8749 | "This variable describes the behavior of the right alternate or option key.\n\ |
| 8749 | Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ | 8750 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8751 | that key.\n\ | ||
| 8750 | Set to left means be the same key as `ns-alternate-modifier'.\n\ | 8752 | Set to left means be the same key as `ns-alternate-modifier'.\n\ |
| 8751 | Set to none means that the alternate / option key is not interpreted by Emacs\n\ | 8753 | Set to none means that the alternate / option key is not interpreted by Emacs\n\ |
| 8752 | at all, allowing it to be used at a lower level for accented character entry."); | 8754 | at all, allowing it to be used at a lower level for accented character entry."); |
| @@ -8754,12 +8756,14 @@ at all, allowing it to be used at a lower level for accented character entry."); | |||
| 8754 | 8756 | ||
| 8755 | DEFVAR_LISP ("ns-command-modifier", ns_command_modifier, | 8757 | DEFVAR_LISP ("ns-command-modifier", ns_command_modifier, |
| 8756 | "This variable describes the behavior of the command key.\n\ | 8758 | "This variable describes the behavior of the command key.\n\ |
| 8757 | Set to control, meta, alt, super, or hyper means it is taken to be that key."); | 8759 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8760 | that key."); | ||
| 8758 | ns_command_modifier = Qsuper; | 8761 | ns_command_modifier = Qsuper; |
| 8759 | 8762 | ||
| 8760 | DEFVAR_LISP ("ns-right-command-modifier", ns_right_command_modifier, | 8763 | DEFVAR_LISP ("ns-right-command-modifier", ns_right_command_modifier, |
| 8761 | "This variable describes the behavior of the right command key.\n\ | 8764 | "This variable describes the behavior of the right command key.\n\ |
| 8762 | Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ | 8765 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8766 | that key.\n\ | ||
| 8763 | Set to left means be the same key as `ns-command-modifier'.\n\ | 8767 | Set to left means be the same key as `ns-command-modifier'.\n\ |
| 8764 | Set to none means that the command / option key is not interpreted by Emacs\n\ | 8768 | Set to none means that the command / option key is not interpreted by Emacs\n\ |
| 8765 | at all, allowing it to be used at a lower level for accented character entry."); | 8769 | at all, allowing it to be used at a lower level for accented character entry."); |
| @@ -8767,12 +8771,14 @@ at all, allowing it to be used at a lower level for accented character entry."); | |||
| 8767 | 8771 | ||
| 8768 | DEFVAR_LISP ("ns-control-modifier", ns_control_modifier, | 8772 | DEFVAR_LISP ("ns-control-modifier", ns_control_modifier, |
| 8769 | "This variable describes the behavior of the control key.\n\ | 8773 | "This variable describes the behavior of the control key.\n\ |
| 8770 | Set to control, meta, alt, super, or hyper means it is taken to be that key."); | 8774 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8775 | that key."); | ||
| 8771 | ns_control_modifier = Qcontrol; | 8776 | ns_control_modifier = Qcontrol; |
| 8772 | 8777 | ||
| 8773 | DEFVAR_LISP ("ns-right-control-modifier", ns_right_control_modifier, | 8778 | DEFVAR_LISP ("ns-right-control-modifier", ns_right_control_modifier, |
| 8774 | "This variable describes the behavior of the right control key.\n\ | 8779 | "This variable describes the behavior of the right control key.\n\ |
| 8775 | Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ | 8780 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8781 | that key.\n\ | ||
| 8776 | Set to left means be the same key as `ns-control-modifier'.\n\ | 8782 | Set to left means be the same key as `ns-control-modifier'.\n\ |
| 8777 | Set to none means that the control / option key is not interpreted by Emacs\n\ | 8783 | Set to none means that the control / option key is not interpreted by Emacs\n\ |
| 8778 | at all, allowing it to be used at a lower level for accented character entry."); | 8784 | at all, allowing it to be used at a lower level for accented character entry."); |
| @@ -8780,7 +8786,8 @@ at all, allowing it to be used at a lower level for accented character entry."); | |||
| 8780 | 8786 | ||
| 8781 | DEFVAR_LISP ("ns-function-modifier", ns_function_modifier, | 8787 | DEFVAR_LISP ("ns-function-modifier", ns_function_modifier, |
| 8782 | "This variable describes the behavior of the function key (on laptops).\n\ | 8788 | "This variable describes the behavior of the function key (on laptops).\n\ |
| 8783 | Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ | 8789 | Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ |
| 8790 | that key.\n\ | ||
| 8784 | Set to none means that the function key is not interpreted by Emacs at all,\n\ | 8791 | Set to none means that the function key is not interpreted by Emacs at all,\n\ |
| 8785 | allowing it to be used at a lower level for accented character entry."); | 8792 | allowing it to be used at a lower level for accented character entry."); |
| 8786 | ns_function_modifier = Qnone; | 8793 | ns_function_modifier = Qnone; |