emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] elpa bc8d07f 27/51: Temporarily bind `TeX-insert-macro-default-st


From: Tassilo Horn
Subject: [elpa] elpa bc8d07f 27/51: Temporarily bind `TeX-insert-macro-default-style' to 'show-optional-args'
Date: Sun, 22 May 2016 07:22:49 +0000 (UTC)

branch: elpa
commit bc8d07f64e4832549182ab541c875736feb8515f
Author: Ikumi Keita <address@hidden>
Commit: Mosè Giordano <address@hidden>

    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 <address@hidden>
---
 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

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