Malabarba / latex-extra

A series of usability improvements for Emacs latex-mode.
GNU General Public License v3.0
69 stars 14 forks source link

New error message when loading latex-extra #34

Open rhstanton opened 3 years ago

rhstanton commented 3 years ago

I've been happily using latex-extra for quite a while, but starting today I get the following error when I load it.

Thanks for any suggestions.

Debugger entered--Lisp error: (error "ad-enable-advice: ‘replace-highlight’ is not advis...")
  signal(error ("ad-enable-advice: ‘replace-highlight’ is not advis..."))
  error("ad-enable-advice: `%s' is not advised" replace-highlight)
  ad-enable-advice(replace-highlight before preview)
  #f(compiled-function (symbol value) #<bytecode 0x1feb553d6e49>)(preview-query-replace-reveal t)
  custom-initialize-reset(preview-query-replace-reveal (funcall #'#f(compiled-function () #<bytecode 0x1feb553d6e2d>)))
  custom-declare-variable(preview-query-replace-reveal (funcall #'#f(compiled-function () #<bytecode 0x1feb553d6e2d>)) "Make `query-replace' autoreveal previews." :group preview-appearance :type boolean :require preview :set #f(compiled-function (symbol value) #<bytecode 0x1feb553d6e49>) :initialize custom-initialize-reset)
  byte-code("\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315\316\317&\15\207" [custom-declare-variable preview-query-replace-reveal funcall function #f(compiled-function () #<bytecode 0x1feb553d6e2d>) "Make `query-replace' autoreveal previews." :group preview-appearance :type boolean :require preview :set #f(compiled-function (symbol value) #<bytecode 0x1feb553d6e49>) :initialize custom-initialize-reset] 14)
  require(preview)
  eval-buffer(#<buffer  *load*-160881> nil "/Users/stanton/.emacs.d/straight/build/latex-extra..." nil t)  ; Reading at buffer position 4517
  load-with-code-conversion("/Users/stanton/.emacs.d/straight/build/latex-extra..." "/Users/stanton/.emacs.d/straight/build/latex-extra..." t t)
  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))
  (progn (condition-case err (add-hook 'LaTeX-mode-hook #'latex-extra-mode) ((debug error) (funcall use-package--warning39 :init err))) (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error)))
  (condition-case err (progn (condition-case err (add-hook 'LaTeX-mode-hook #'latex-extra-mode) ((debug error) (funcall use-package--warning39 :init err))) (if (not (require 'latex-extra nil t)) (display-warning 'use-package (format "Cannot load %s" 'latex-extra) :error))) ((debug error) (funcall use-package--warning39 :catch err)))
  eval-buffer(#<buffer  *load*-878405> nil "/Users/stanton/.emacs.d/init.el" nil t)  ; Reading at buffer position 24082
  load-with-code-conversion("/Users/stanton/.emacs.d/init.el" "/Users/stanton/.emacs.d/init.el" nil nil)
  load("/Users/stanton/.emacs.d/init.el")
  (let* ((emacs-directory (file-name-as-directory (chemacs-emacs-profile-key 'user-emacs-directory))) (init-file (expand-file-name "init.el" emacs-directory)) (custom-file- (chemacs-emacs-profile-key 'custom-file init-file)) (server-name- (chemacs-emacs-profile-key 'server-name))) (setq user-emacs-directory emacs-directory) (if server-name- (progn (setq server-name server-name-))) (mapcar #'(lambda (env) (setenv (car env) (cdr env))) (chemacs-emacs-profile-key 'env)) (if (chemacs-emacs-profile-key 'straight-p) (progn (chemacs-load-straight))) (load init-file) (if (not custom-file) (progn (setq custom-file custom-file-) (if (equal custom-file init-file) nil (load custom-file)))))
  chemacs-load-profile("default")
  (if args (let ((s (split-string (car args) "="))) (cond ((equal (car args) "--with-profile") (add-to-list 'command-switch-alist '("--with-profile" lambda (_) (pop command-line-args-left))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list 'command-switch-alist (cons (car args) '(lambda ...))) (chemacs-load-profile (mapconcat 'identity (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args))))) (chemacs-load-profile (chemacs-detect-default-profile)))
  chemacs-check-command-line-args(nil)
  (cond ((equal (car args) "--with-profile") (add-to-list 'command-switch-alist '("--with-profile" lambda (_) (pop command-line-args-left))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list 'command-switch-alist (cons (car args) '(lambda (_)))) (chemacs-load-profile (mapconcat 'identity (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args))))
  (let ((s (split-string (car args) "="))) (cond ((equal (car args) "--with-profile") (add-to-list 'command-switch-alist '("--with-profile" lambda (_) (pop command-line-args-left))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list 'command-switch-alist (cons (car args) '(lambda (_)))) (chemacs-load-profile (mapconcat 'identity (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args)))))
  (if args (let ((s (split-string (car args) "="))) (cond ((equal (car args) "--with-profile") (add-to-list 'command-switch-alist '("--with-profile" lambda (_) (pop command-line-args-left))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list 'command-switch-alist (cons (car args) '(lambda ...))) (chemacs-load-profile (mapconcat 'identity (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args))))) (chemacs-load-profile (chemacs-detect-default-profile)))
  chemacs-check-command-line-args(("/Applications/MacPorts/EmacsMac.app/Contents/MacOS..."))
  eval-buffer(#<buffer  *load*> nil "/Users/stanton/.emacs" nil t)  ; Reading at buffer position 7555
  load-with-code-conversion("/Users/stanton/.emacs" "/Users/stanton/.emacs" t t)
  load("~/.emacs" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1feb55872ebd>) #f(compiled-function () #<bytecode 0x1feb55872ed1>) t)
  command-line()
  normal-top-level()