Skip to content
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

Cannot open load file" "No such file or directory" "tex-buf #39

Open
nameiwillforget opened this issue Feb 27, 2024 · 1 comment
Open

Comments

@nameiwillforget
Copy link

nameiwillforget commented Feb 27, 2024

I haven't written any Latex in a few weeks and only now noticed that I cannot eval

(use-package latex-extra)

anymore because I get

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "tex-buf")
  require(tex-buf)
  byte-code("\301\302!\210\301\303!\210\304\305\10\"\204\23\0\301\306!\210\301\307!\210\301\310!\210\301\311!\210\301\312!\207" [AUCTeX-version require tex latex string-prefix-p "13" tex-buf texmathp cl-lib outline preview] 3)
  require(latex-extra nil t)
  (not (require 'latex-extra nil t))
  (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error))
  (condition-case err (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error)) ((debug error) (funcall use-package--warning86 :catch err)))
  (progn (use-package-ensure-elpa 'latex-extra '(t) 'nil) (defvar use-package--warning86 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error)) ((debug error) (funcall use-package--warning86 :catch err))))
  (let ((print-level nil) (print-length nil)) (progn (use-package-ensure-elpa 'latex-extra '(t) 'nil) (defvar use-package--warning86 #'(lambda (keyword err) (let ((msg ...)) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error)) ((debug error) (funcall use-package--warning86 :catch err)))))
  (setq elisp--eval-defun-result (let ((print-level nil) (print-length nil)) (progn (use-package-ensure-elpa 'latex-extra '(t) 'nil) (defvar use-package--warning86 #'(lambda (keyword err) (let (...) (display-warning ... msg :error)))) (condition-case err (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error)) ((debug error) (funcall use-package--warning86 :catch err))))))
  elisp--eval-defun()
  eval-defun(nil)
  funcall-interactively(eval-defun nil)
  command-execute(eval-defun)

I'm guessing this is related to this: https://github.com/Malabarba/latex-extra/issues/35

Auctex version is 14.0.3, Emacs is 30.0.5.

@apc
Copy link

apc commented Mar 1, 2024

I take it the problem is that AUCTeX is now on version 14, so latex-extra is still require-ing tex-buf, which it was supposed not to since this commit. There's a pending pull request to address this problem.

In the meantime, if you replace these lines in latex-extra:

(unless (string-prefix-p "13" AUCTeX-version)
  (require 'tex-buf))

with this:

(when (version< AUCTeX-version "13")
  (require 'tex-buf))

I think you should be good to go for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants