latex-extra
latex-extra copied to clipboard
Cannot open load file" "No such file or directory" "tex-buf
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.
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.