-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tex-buf is no longer a part of auctex #39
Comments
It was sufficient to edit the (require 'tex-buf) to read (require 'tex) |
No, I don't think that's true. As |
Hi, |
try https://github.com/raxod502/straight.el#how-do-i-pin-package-versions-or-use-only-tagged-releases |
ok, thank you |
AUCTeX 13.1 was released on 2022-02-20. Couldn't find the change you mentioned in either of these changelogs @wang1zhen:
Is it sufficient to use 13.0, or do you recommend an earlier version? |
That mirror may be out of date. https://git.savannah.gnu.org/gitweb/?p=emacs/elpa.git;a=commit;h=4b1c7015ae77b88832af35510232e1a1b716da3a It is removed with the release of 13.1.2. |
I now also ran into this issue. In the AUCTeX.info (for version 13.1.2 from 2022-04-08), it says:
//update: ach, I just noticed PR #40 :-) |
FWIW, here's how I'm locally working around the issue at runtime until upstream is patched: (defun my-auctex-latexmk-advice (req feature &rest args)
"Call REQ with FEATURE and ARGS, unless FEATURE is `tex-buf'."
(unless (eq feature 'tex-buf)
(apply req feature args)))
(with-eval-after-load 'latex
(unwind-protect
(progn (advice-add 'require :around #'my-auctex-latexmk-advice)
(auctex-latexmk-setup))
(advice-remove 'require #'my-auctex-latexmk-advice))) |
The change from PR #40 did the trick for me (applied to my copy of - (require 'tex-buf)
(require 'latex)
+ (require 'tex-buf nil t) (This tries to load |
This solution is problematic in my setting, where my OS package installer insists on installing auctex 12.3, but I insist on upgrading auctex via MELPA. tex-buf is still found and loaded even if I use auctex 13.1.3. for latex-extra I proposed: - (require 'tex-buf)
(require 'latex)
+ (unless (string-prefix-p "13" AUCTeX-version)
+ (require 'tex-buf)) |
I guess you might need to remove the old version of auctex files manually |
The old auctex was installed by my OS package manager. I can remove it, but there is some dependency that gets it reinstalled with the next update. |
@basil-conto thanks for sharing your runtime fix. Do you put those lines before the The Error still appears in
|
That may be because you're calling Or it may be because of the Considering you see the error in the
The lines I wrote are standalone, i.e. independent of any (use-package auctex-latexmk
:ensure t
:defer t
:after latex
:functions auctex-latexmk-setup
:preface
(defun my-auctex-latexmk-advice (req feature &rest args)
"Call REQ with FEATURE and ARGS, unless FEATURE is `tex-buf'."
(unless (eq feature 'tex-buf)
(apply req feature args)))
:init
(unwind-protect
(progn (advice-add 'require :around #'my-auctex-latexmk-advice)
(auctex-latexmk-setup))
(advice-remove 'require #'my-auctex-latexmk-advice))) Note that, as I mentioned above, this will not fix the |
@basil-conto thanks! for someone who doesnt utilize |
For some reason this doesn't work for me and I get the following error at startup
|
That shouldn't happen, as Can you get a backtrace for the error? E.g. via Do you have any other |
see the changelog of auctex.
The text was updated successfully, but these errors were encountered: