tom-tan / auctex-latexmk

This library adds LatexMk support to AUCTeX.
93 stars 24 forks source link

Update auctex-latexmk.el #40

Open wang1zhen opened 2 years ago

wang1zhen commented 2 years ago

tex-buf is no longer provided by the auctex package.

tobiasBora commented 2 years ago

Any news on this?

tarsius commented 2 years ago

@tom-tan Friendly ping!

tarsius commented 2 years ago

I have added a patch to the version on the Emacsmirror to fix this issue, and have updated Melpa to get this package from there.

dr-scsi commented 5 months ago

@tarsius - AUCTeX now has built-in support for LaTeXmk added with this commit. Maybe it makes sense to archive this repo and the one from Emacsmirror and tell users to update their AUCTeX installations. Bug reports etc. can be addressed to the AUCTeX team. WDYT?

tarsius commented 5 months ago

Probably. Have you (or any of the numerous users who up-thumbed earlier) checked whether the built-in support handles everything the old package handled? If I don't hear about any issues, I'll remove this package in a week or so.

dr-scsi commented 5 months ago

@tarsius - I've never used auctex-latexmk.el, so I can't tell. From reading the code, AUCTeX lacks the encoding magic this library does (AUCTeX has a different approach); the plain LaTeXMk support should be better integrated in AUCTeX and the variables it provides for controlling the output.

We can try to formalize this process a little by opening a new bug-report here (I'll do it) and try to get answers to your questions from the actual users. If we're lucky, @tom-tan chimes in and we clarify things.

basil-conto commented 5 months ago

The AUCTeX changes also come with the following announcement in NEWS.org:

  • Add preliminary support for processing files with latexmk. Support for dvipdfmx and the choice for viewer after compilation are not optimal, yet. Overall, the support comes close to what the auctex-latexmk library provides.
basil-conto commented 5 months ago

Have you (or any of the numerous users who up-thumbed earlier) checked whether the built-in support handles everything the old package handled?

One minor thing I've noticed in my own workflow, but haven't had time to report or look into:

I add the function TeX-revert-document-buffer to the hook TeX-after-compilation-finished-functions so that the PDF-visiting buffer is reverted after each (manually invoked) recompilation, as documented under (info "(auctex) Modes and Hooks").

AFAICT this hook is not run by AUCTeX's built-in "LaTeXMk" command, since it invokes TeX-run-format (instead of TeX-run-TeX or similar, as the "LaTeX" command does).

My current workaround involves advising TeX-TeX-sentinel to run the hook.

dr-scsi commented 4 months ago

@basil-conto - Thanks for raising this. Can you please file a bug report to the AUCTeX tracker? The address is bug-auctex@gnu.org.