Re: LaTeX-find-matching-{begin,end} and LaTeX-current-environment

2022-12-17 Thread Ikumi Keita
> Ikumi Keita writes: > My current status is the attached patch, but it fails with regression > test `LaTeX-change-environment-with-esc', of course. Mosè, Tassilo, do > you think that `LaTeX-modify-environment' should keep the ability to > change environment named "\foo{bar}"? I tweaked the

Re: LaTeX-find-matching-{begin,end} and LaTeX-current-environment

2022-12-14 Thread Ikumi Keita
(member (match-string-no-properties 2) + '("macrocode" "macrocode*" +(setq level + (if (= (char-after (match-beginning 1)) ?b) ;;begin + (1+ level) +(1- level) +(or (= le

Re: LaTeX-find-matching-{begin,end} and LaTeX-current-environment

2022-12-13 Thread Ikumi Keita
Hi Arash, Thanks for your comments. I'll install the proposed fix as well as macrocode*? support, unless Mosè or Tassilo objects explicitly. Since `LaTeX-find-matching-begin' and `LaTeX-current-environment' is very similar in their task in implementation, I probably factor out the common code and

Re: LaTeX-find-matching-{begin,end} and LaTeX-current-environment

2022-12-12 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I have some minor issues with respect to `LaTeX-find-matching-begin', > `LaTeX-find-matching-end' and `LaTeX-current-environment', which I'd > like to discuss. > > 1. I noticed that `LaTeX-find-matching-{begin,end}' doesn't work >correc

LaTeX-find-matching-{begin,end} and LaTeX-current-environment

2022-12-10 Thread Ikumi Keita
Hi all, I have some minor issues with respect to `LaTeX-find-matching-begin', `LaTeX-find-matching-end' and `LaTeX-current-environment', which I'd like to discuss. 1. I noticed that `LaTeX-find-matching-{begin,end}' doesn't work correctly when the point is just after the asterisk of "\en