aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes/tex-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes/tex-mode.el')
-rw-r--r--lisp/textmodes/tex-mode.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 87dc8fcbc00..68b408af081 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -2342,15 +2342,15 @@ There might be text before point."
2342 (+ indent (current-column) tex-indent-item)) 2342 (+ indent (current-column) tex-indent-item))
2343 (t 2343 (t
2344 (let ((col (current-column))) 2344 (let ((col (current-column)))
2345 (if (not (eq (char-syntax char) ?\()) 2345 (if (or (null char) (not (eq (char-syntax char) ?\()))
2346 ;; If the first char was not an open-paren, there's 2346 ;; If the first char was not an open-paren, there's
2347 ;; a risk that this is really not an argument to the 2347 ;; a risk that this is really not an argument to the
2348 ;; macro at all. 2348 ;; macro at all.
2349 (+ indent col) 2349 (+ indent col)
2350 (forward-sexp 1) 2350 (forward-sexp 1)
2351 (if (< (line-end-position) 2351 (if (< (line-end-position)
2352 (save-excursion (forward-comment (point-max)) 2352 (save-excursion (forward-comment (point-max))
2353 (point))) 2353 (point)))
2354 ;; we're indenting the first argument. 2354 ;; we're indenting the first argument.
2355 (min (current-column) (+ tex-indent-arg col)) 2355 (min (current-column) (+ tex-indent-arg col))
2356 (skip-syntax-forward " ") 2356 (skip-syntax-forward " ")