bug#63441: Wrong Indentation with backslash in verb macros with braces

2023-05-11 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > 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))

bug#63441: Wrong Indentation with backslash in verb macros with braces

2023-05-11 Thread Ikumi Keita
Hi Arash, > Arash Esbati 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

bug#63444: Acknowledgement (folding mode for Texinfo doesn't work reliably)

2023-05-11 Thread Werner LEMBERG
> If I call `TeX-fold-buffer`, some macros like `rnotation` are > properly folded, but many others like `snippets` or `englishref` are > not. Ah, maybe it is not working for `@macro ... @end macro` either – the `[r]` seems to be a reference, not the contents of a macro. Werner

bug#63444: folding mode for Texinfo doesn't work reliably

2023-05-11 Thread Werner LEMBERG
[commit 0cb158fd96ff8c1c7f0bf8c0dd152a301e82f562] Consider this quite complicated Texinfo macro file from LilyPond's documentation: https://gitlab.com/lilypond/lilypond/-/blob/master/Documentation/ca/macros.itexi If I call `TeX-fold-buffer`, some macros like `rnotation` are properly

bug#62866: Problem with previewing

2023-05-11 Thread Arash Esbati
tags 62866 moreinfo unreproducible close 62866 thanks Arash Esbati writes: > Grimoire April writes: > >> I have a problem previewing this file, using luatex. Although other >> tex engines seem not to work either. > > I opened this file: > > \documentclass{article} > \usepackage{amsmath} >

bug#63441: Wrong Indentation with backslash in verb macros with braces

2023-05-11 Thread Arash Esbati
Hi all, I just installed a change (commit 0cb158fd96) which improves fontification of arguments of verb macros with braces. One addition is also handling of backslash(es) as last character(s) in the argument. There is a downside, though. Consider the following file: --8<---cut