I enter the defun in either case. And in both cases, the value for file is correct. However, when I've pressed C-c C-l, the PDF buffer doesn't revert. When I haven't pressed C-c C-l, it does revert.
I just tried it again with the debugger active, and even when the debugger is active, if I press C-c C-l, then it doesn't work. But if I don't press C-c C-l, then it does work.
Yes, I think I've discovered what the issue is. This might be a bug in AUCTeX. It works, so long as I do not press C-c C-l to display the results of the compilation. If I do press C-c C-l to see the results, then it will not automatically revert the PDF buffer.
It switches to the buffer with the PDF. Though this time the buffer seems to have actually reverted for me ... In the past, it has not, and I don't think I've done anything differently.
Sorry, just to clarify, should I be typing just "file" in the minibuffer and then hitting <RET>, or should I be typing "input file" in the minibuffer and then hitting <RET>?
Yes, the point is at the beginning of the first line with code inside the defun. That line has the following code: (let ((buf (find-buffer-visiting file)))
Okay, I've done that, and I just ran adamliter-TeX-make, which opened tex-buf.el at line 1014, which is the first line of TeX-revert-document-buffer. What should I do next?
@PauloCereda Lol, I also don't know anything about Java, so it's probably me ... But thanks! I'll update the issue sometime today with more info on the other options to knit().
@PauloCereda Okay, sounds good. Perhaps I'll send you an email this weekend. I have some other stuff I need to work on today. Thanks for the quick discussion though! ðĶ
@PauloCereda Yes, I think so. But then one will also (I think?) need custom (pdf|xe|lua)latex rules that only use the file base name and not the file name, since the standard workflow with knitr is to edit a .Rnw file, compile the .Rnw file to a .tex file with knitr, and then compile the .tex file to PDF with a LaTeX engine.
@PauloCereda I think I might have some time this weekend where I can help. I can try to look back through my emails with you, too. I'm pretty sure you already had a working knitr rule with arara 4.0 at some point in time ...
@JosephWright Thanks for the info. I think you could in principle do the same thing with Docker and just run tlmgr update in the Docker container before compiling or testing anything. There's probably no good reason to (dis)prefer this, though. But I was thinking about Docker because I'm considering building out some images for recent versions of TeX Live in order to test example code for a LaTeX tutorial that I have.
@PauloCereda Hahah, that's a great picture. I'm good. In a hurry, too. I'm trying to get a lot of stuff done before classes start back up again for me ...
And thanks @samcarter. That link is helpful. I've come across a few other one-off Docker images like that, but I was hoping to find a set of images for at least the last few versions of TeX Live, too. But I'll probably use the one you linked to and some of the others I've found for inspiration when making images for a couple of the recent versions of TeX Live.
Does anyone know if there are canonical/official Docker images for (past and) present TeX Live versions? (Maybe @egreg, @DavidCarlisle, @JosephWright, or others would know?) I didn't see anything from a quick google search, but maybe I missed something? ð