auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5d33c2ade3179bb5ece9b


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5d33c2ade3179bb5ece9b1cac256d328f1a091f0
Date: Sun, 18 Jul 2021 13:59:07 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  5d33c2ade3179bb5ece9b1cac256d328f1a091f0 (commit)
      from  f200e28278856ebadac2f02786bf201c4f6f8c0d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5d33c2ade3179bb5ece9b1cac256d328f1a091f0
Author: Arash Esbati <arash@gnu.org>
Date:   Sun Jul 18 19:55:46 2021 +0200

    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.

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.

-----------------------------------------------------------------------

Summary of changes:
 doc/auctex.texi |  8 +++++---
 latex.el        | 14 ++++++++++----
 2 files changed, 15 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]