auctex-devel
[Top][All Lists]
Advanced

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

Declare indent in `TeX-arg-conditional'


From: Arash Esbati
Subject: Declare indent in `TeX-arg-conditional'
Date: Tue, 11 Oct 2022 10:44:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi all,

is there any objection if I install this change:

--8<---------------cut here---------------start------------->8---
diff --git a/latex.el b/latex.el
index 9e5cff3d..00a24cdf 100644
--- a/latex.el
+++ b/latex.el
@@ -2109,6 +2109,7 @@ It will setup BibTeX to store keys in an auto file."
 If EXPR evaluate to true, parse THEN as an argument list, else
 parse ELSE as an argument list.  The compatibility argument
 OPTIONAL is ignored."
+  (declare (indent 2))
   (TeX-parse-arguments (if (eval expr t) then else)))

 (defun TeX-arg-eval (optional &rest args)
--8<---------------cut here---------------end--------------->8---

Currently, `TeX-arg-conditional' is indented like this:

    (TeX-add-symbols
     '("macro" (TeX-arg-conditional (condition)
                                    (then)
                                    (else))))

With the change like this:

    (TeX-add-symbols
     '("macro" (TeX-arg-conditional (condition)
                   (then)
                 (else))))

which looks better to me.

Any comments?

Best, Arash



reply via email to

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