Hi, I am using emacs GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) on Debian 12 with AucTeX to edit LaTeX2e documents.
If the variable master-file is not set, ie when the file is the master-file, then upon inserting an equation C-c C-e the reftex mode correctly inserts the appropriate label \label{eq:NUM}. However, if the master-file variable is set the following message appears LaTeX-label: Wrong type argument: symbolp, #[128 " \"" [apply reftex-label reftex-label nil] 4 nil (advice-eval-interactive-spec (cadr (interactive-form 'reftex-label)))] and the equation environment is created without the automated \label{}. Emacs debugger backtrace outputs: Debugger entered--Lisp error: (wrong-type-argument symbolp #f(advice-wrapper :override reftex-label reftex-label)) fboundp(#f(advice-wrapper :override reftex-label reftex-label)) LaTeX-label("equation" environment) LaTeX-env-label("equation") apply(LaTeX-env-label "equation" nil) LaTeX-environment-menu("equation") LaTeX-environment(nil) funcall-interactively(LaTeX-environment nil) command-execute(LaTeX-environment) How can I get rid of these errors?