branch: elpa
commit bc8d07f64e4832549182ab541c875736feb8515f
Author: Ikumi Keita <[email protected]>
Commit: Mosè Giordano <[email protected]>

    Temporarily bind `TeX-insert-macro-default-style' to 'show-optional-args'
    
    * latex.el (LaTeX-item-argument): Temporarily bind
    `TeX-insert-macro-default-style' to 'show-optional-args'.
    This is necessary in description environment if the user customize the
    option to `mandatory-args-only'.
    
    Signed-off-by: Mosè Giordano <[email protected]>
---
 latex.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index 9c2ccb5..16d6760 100644
--- a/latex.el
+++ b/latex.el
@@ -1259,7 +1259,8 @@ You may use `LaTeX-item-list' to change the routines used 
to insert the item."
 
 (defun LaTeX-item-argument ()
   "Insert a new item with an optional argument."
-  (let ((TeX-arg-item-label-p t))
+  (let ((TeX-arg-item-label-p t)
+       (TeX-insert-macro-default-style 'show-optional-args))
     (TeX-insert-macro "item")))
 
 (defun LaTeX-item-bib ()

Reply via email to