Hi Arash,

>>>>> Arash Esbati <ar...@gnu.org> writes:
> which is wrong.  This is due to the implementation of
> `TeX-brace-count-line' which presumes that ?\\ always escapes the next
> char, which is wrong in verb macros.  I can think of a solution like
> this:
> diff --git a/tex.el b/tex.el
> index b862d3c2..4663b217 100644
> --- a/tex.el
> +++ b/tex.el
> @@ -5485,7 +5485,9 @@ additional characters."
>                          (setq count (- count TeX-brace-indent-level)))
>                         ((eq char ?\\)
>                          (when (< (point) limit)
> -                          (forward-char)
> +                          (unless (and (fboundp 'LaTeX-verbatim-p)
> +                                       (LaTeX-verbatim-p))
> +                            (forward-char))
>                            t))))))
>        count)))
> Any comments oder better approaches?

I don't think `fboundp' test is a right approach because it calls
`LaTeX-verbatim-p' even in non-LaTeX mode buffers after the session
loads latex.el. How about just
(TeX-verbatim-p)
instead of
(and (fboundp 'LaTeX-verbatim-p)
     (LaTeX-verbatim-p))
?

Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine



_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to