Re: TikZ support and ConTeXt environments

2022-11-08 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > Thanks, that was the missing piece. I had in my mind that > `TeX-auto-parser' is buffer-local. Would it break something if we do > this: > diff --git a/tex.el b/tex.el > index 317b8b49..49f95806 100644 > --- a/tex.el > +++ b/tex.el > @@ -3839,7 +3839,7 @@

Re: TikZ support and ConTeXt environments

2022-11-08 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > The key clash isn't direct consequence of (require 'latex) in > context.el. Even without (require 'latex), it would occur when LaTeX > document and ConTeXt document are opened in the same emacs session. The > culprit is that >(TeX-auto-add-type "environment"

Re: TikZ support and ConTeXt environments

2022-11-08 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > I would have expected that this entry: > ("environment" LaTeX-auto-environment LaTeX-add-environments >LaTeX-environment-list LaTeX-environment-changed) > is due to this line in context.el: > (require 'latex) ; for functions like `TeX-look-at'

Re: TikZ support and ConTeXt environments

2022-11-08 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > As far as I can see, context.el doesn't rely on functionalities provided > by latex.el with respect to the current issue. So I don't think we need > de-coupling. In your first message, you wrote: > I figured out that `TeX-auto-add-type' is responsible for the

Re: Extending env definitions or introducing new ones?

2022-11-08 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I see, then I don't adhere to my proposal. I think it is best to do it > in a way that is easy for you. ;-) Thanks. I'm attaching the change I currently have. Please let me know if you have any comments, otherwise I will install it. Best, Arash diff --git

Re: TikZ support and ConTeXt environments

2022-11-08 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: >> Thus I propose to apply the attached second patch to make the key to be >> unique. > I'm not familiar with context.el, and most notably I don't know how much > context.el relies on functionalities provided by latex.el in order to > run, but can we