From: Alan Third Date: Mon, 29 Aug 2016 18:32:40 +0000 (+0100) Subject: Clarify docstrings X-Git-Tag: emacs-26.0.90~1679 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bcd2d911f35fd28f0a0051f237dc76f15cea4b4a;p=emacs.git Clarify docstrings * src/nsterm.m: Clarified that ns-x-modifier variables require a symbol. --- 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) DEFVAR_LISP ("ns-alternate-modifier", ns_alternate_modifier, "This variable describes the behavior of the alternate or option key.\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key.\n\ Set to none means that the alternate / option key is not interpreted by Emacs\n\ at all, allowing it to be used at a lower level for accented character entry."); ns_alternate_modifier = Qmeta; DEFVAR_LISP ("ns-right-alternate-modifier", ns_right_alternate_modifier, "This variable describes the behavior of the right alternate or option key.\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key.\n\ Set to left means be the same key as `ns-alternate-modifier'.\n\ Set to none means that the alternate / option key is not interpreted by Emacs\n\ 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."); DEFVAR_LISP ("ns-command-modifier", ns_command_modifier, "This variable describes the behavior of the command key.\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key."); +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key."); ns_command_modifier = Qsuper; DEFVAR_LISP ("ns-right-command-modifier", ns_right_command_modifier, "This variable describes the behavior of the right command key.\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key.\n\ Set to left means be the same key as `ns-command-modifier'.\n\ Set to none means that the command / option key is not interpreted by Emacs\n\ 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."); DEFVAR_LISP ("ns-control-modifier", ns_control_modifier, "This variable describes the behavior of the control key.\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key."); +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key."); ns_control_modifier = Qcontrol; DEFVAR_LISP ("ns-right-control-modifier", ns_right_control_modifier, "This variable describes the behavior of the right control key.\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key.\n\ Set to left means be the same key as `ns-control-modifier'.\n\ Set to none means that the control / option key is not interpreted by Emacs\n\ 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."); DEFVAR_LISP ("ns-function-modifier", ns_function_modifier, "This variable describes the behavior of the function key (on laptops).\n\ -Set to control, meta, alt, super, or hyper means it is taken to be that key.\n\ +Set to the symbol control, meta, alt, super, or hyper means it is taken to be\n\ +that key.\n\ Set to none means that the function key is not interpreted by Emacs at all,\n\ allowing it to be used at a lower level for accented character entry."); ns_function_modifier = Qnone;