Re: Onwards to lexical binding (attempt 1)

2020-09-10 Thread Tassilo Horn
Ikumi Keita writes: >> Yeah, but preview-latex can bind that itself. I mean, it has >> separate commands for preview document and preview region and then >> passes either TeX-master-file or TeX-region-file. So if it binds >> TeX-current-process-region-p itself and TeX-active-master is used >>

Re: Onwards to lexical binding (attempt 1)

2020-09-10 Thread Ikumi Keita
Hi Tassilo, > Tassilo Horn writes: > Yeah, but preview-latex can bind that itself. I mean, it has separate > commands for preview document and preview region and then passes either > TeX-master-file or TeX-region-file. So if it binds > TeX-current-process-region-p itself and

Re: Onwards to lexical binding (attempt 1)

2020-09-10 Thread Tassilo Horn
Ikumi Keita writes: > Understood. Preview-latex (and presumably some other parts of AUCTeX) > calls TeX-command-expand directly, which bypasses setting > TeX-current-process-region-p. Thus TeX-active-master doesn't work as > expected. Yeah, but preview-latex can bind that itself. I mean, it

Re: Onwards to lexical binding (attempt 1)

2020-09-10 Thread Ikumi Keita
> Ikumi Keita writes: > However, it seems that the first run of preview-latex on any region > fails. It must be my conceptual patch that is guilty for that. I haven't > looked into the actual codes yet, but my impression is that some kind of > initialization is required to fix this...

Re: Updating xparse.el

2020-09-10 Thread Florent Rougon
Hi Arash, Arash Esbati wrote: > Sorry for my late response. I had a second thought on this and came up > with the name `font-latex-fontify-replacement-text'. A patch to > xparse.el can look like this: (...) > The variable will eventually land in font-latex.el, I put it in > xparse.el for

Re: TeX-master and TeX-output-master

2020-09-10 Thread Al Haji-Ali
Hello Uwe, > I tested it, it works thanks. Later I will try out Index and friends Great! If something doesn't work, can you please include an example tex file for me to test? As I said, I don't use "index and friends". > I find this patch very useful for directories that contain very tex >

Re: TeX-master and TeX-output-master

2020-09-10 Thread Uwe Brauer
> Hello Uwe, > On 09/09/2020, Uwe Brauer wrote: > Thanks for testing! The attached patch (against 087b0300) should fix BibTeX and biber. > The fix involves changing `TeX-run-command` to accept an argument for > an expected file extension in the directory (defaults to nil and