branch: externals/auctex commit 5d33c2ade3179bb5ece9b1cac256d328f1a091f0 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
Be more precise about the first element in `LaTeX-math-list' * doc/auctex.texi (Mathematics): * latex.el (LaTeX-math-list): Update description for the first element KEY in `LaTeX-math-list'. Remove unnecessary quoting of opening/closing parenthesis. --- doc/auctex.texi | 8 +++++--- latex.el | 14 ++++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/doc/auctex.texi b/doc/auctex.texi index 8a5676c..4295a60 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -1203,9 +1203,11 @@ The variable @code{LaTeX-math-list} allows you to add your own mappings. A list containing user-defined keys and commands to be used in @LaTeX{} Math mode. Each entry should be a list of two to four elements. -First, the key to be used after @code{LaTeX-math-abbrev-prefix} for -macro insertion. If it is nil, the symbol has no associated -keystroke (it is available in the menu, though). +First, the key to be used after @code{LaTeX-math-abbrev-prefix} for macro +insertion. The key can be a character (e.g. @samp{?o}) for a single +stroke or a string (e.g. @samp{"o a"}) for a multi-stroke binding. If it +is nil, the symbol has no associated keystroke (it is available in the +menu, though). Second, a string representing the name of the macro (without a leading backslash.) diff --git a/latex.el b/latex.el index 083e530..ded745f 100644 --- a/latex.el +++ b/latex.el @@ -5653,8 +5653,14 @@ Each entry should be a list with up to four elements, KEY, VALUE, MENU and CHARACTER. KEY is the key (after `LaTeX-math-abbrev-prefix') to be redefined -in math minor mode. If KEY is nil, the symbol has no associated -keystroke \(it is available in the menu, though\). +in math minor mode. KEY can be a character (e.g. ?o) for a +single stroke or a string (e.g. \"o a\") for a multi-stroke +binding. If KEY is nil, the symbol has no associated +keystroke (it is available in the menu, though). Note that +predefined keys in `LaTeX-math-default' cannot be overridden in +this variable. Currently, only the lowercase letter 'o' is free +for user customization, more options are available in uppercase +area. VALUE can be a string with the name of the macro to be inserted, or a function to be called. The macro must be given without the @@ -5662,8 +5668,8 @@ leading backslash. The third element MENU is the name of the submenu where the command should be added. MENU can be either a string -\(e.g. \"greek\"\), a list (e.g. \(\"AMS\" \"Delimiters\"\)\) or -nil. If MENU is nil, no menu item will be created. +\(e.g. \"greek\"), a list (e.g. (\"AMS\" \"Delimiters\")) or nil. +If MENU is nil, no menu item will be created. The fourth element CHARACTER is a Unicode character position for menu display. When nil, no character is shown.