Re: Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-16 Thread Arash Esbati
JOSE MARIA MARTIN OLALLA  writes:

> Yes, you got it right. The current Debian 12 released 2023 is shipping
> AUCTeX 12.2.

Thanks for the confirmation.

> I removed the apt-installed AUCTeX and did the package-install stuff.
>
> It worked like charm.

Glad we have this resolved.

> I must add I have been an Emacs-AUCTeX user since the 2000s or so. I
> love acknowledging the terrific contribution that free software do in
> the studies I got published.  Sometimes these acknowledgements get
> published[1].  I take this opportunity to thank you all again.

Thank you for your kind words.

Best, Arash



RE: Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-15 Thread JOSE MARIA MARTIN OLALLA
Yes, you got it right. The current Debian 12 released 2023 is shipping AUCTeX 
12.2.

I removed the apt-installed AUCTeX and did the package-install stuff.

It worked like charm.

Many many thanks.

I must add I have been an Emacs-AUCTeX user since the 2000s or so. I love 
acknowledging the terrific contribution that free software do in the studies I 
got published.
Sometimes these acknowledgements get published[1].
I take this opportunity to thank you all again.

[1]https://www.nature.com/articles/s41598-019-43220-8#Ack1
[https://media.springernature.com/m685/springer-static/image/art%3A10.1038%2Fs41598-019-43220-8/MediaObjects/41598_2019_43220_Fig1_HTML.png]<https://www.nature.com/articles/s41598-019-43220-8#Ack1>
Seasonal synchronization of sleep timing in industrial and pre-industrial 
societies - Scientific 
Reports<https://www.nature.com/articles/s41598-019-43220-8#Ack1>
www.nature.com





José María Martín Olalla

+34-9545-56075

https://orcid.org/-0002-3750-9113

Universidad de Sevilla


De: Arash Esbati 
Enviado: martes, 14 de noviembre de 2023 21:42
Para: JOSE MARIA MARTIN OLALLA 
Cc: auctex@gnu.org 
Asunto: Re: Wrong type argument: symbolp, when inserting equation reftex-label

Jose Maria Martin Olalla  writes:

> Many thanks Arash,
>
> AUCTeX version is 12.2
>
> AUCTeX, emacs and the whole texmf were installed via apt install

Thanks for the clarification.  Do I get it right that the current Debian
12 (released this year) is shipping a 4 years old version of AUCTeX[1]?

> I evaluated the code in scratch, or I think so: M+: and the code, no
> line breaks. The minibuffer returned nil.

Yes, this is then expected since you didn't install AUCTeX from ELPA.
My suggestion presumed that.  You have 2 choices now:

  • Activate AUCTeX the way you do it from your init file after 'emacs
-Q' (I have no idea how one is supposed to do it on Debian)

  • You uninstall AUCTeX via apt and install it from ELPA as described
here[2].  Then you can try the instruction I sent.

> I opened a *.tex file with a TeX-master in local variables. However
> the full AUCTeX bundle for LaTeX files was not available in the major
> mode. Instead, the default TeX environment that is loaded with 'emacs
> -Q filename.tex' was available. As if the eval code did not activate
> AUCTeX actually. As a result C-c C-e did not launch an environment.

Yes, this is then expected.  What you did doesn't match your AUCTeX
installation.

Best, Arash

Footnotes:
[1]  https://lists.gnu.org/archive/html/info-auctex/2019-10/msg1.html

[2]  
https://www.gnu.org/software/auctex/manual/auctex/Installation.html#Installation



Re: Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-14 Thread Arash Esbati
Jose Maria Martin Olalla  writes:

> Many thanks Arash,
>
> AUCTeX version is 12.2
>
> AUCTeX, emacs and the whole texmf were installed via apt install

Thanks for the clarification.  Do I get it right that the current Debian
12 (released this year) is shipping a 4 years old version of AUCTeX[1]?

> I evaluated the code in scratch, or I think so: M+: and the code, no
> line breaks. The minibuffer returned nil.

Yes, this is then expected since you didn't install AUCTeX from ELPA.
My suggestion presumed that.  You have 2 choices now:

  • Activate AUCTeX the way you do it from your init file after 'emacs
-Q' (I have no idea how one is supposed to do it on Debian)

  • You uninstall AUCTeX via apt and install it from ELPA as described
here[2].  Then you can try the instruction I sent.

> I opened a *.tex file with a TeX-master in local variables. However
> the full AUCTeX bundle for LaTeX files was not available in the major
> mode. Instead, the default TeX environment that is loaded with 'emacs
> -Q filename.tex' was available. As if the eval code did not activate
> AUCTeX actually. As a result C-c C-e did not launch an environment.

Yes, this is then expected.  What you did doesn't match your AUCTeX
installation.

Best, Arash

Footnotes:
[1]  https://lists.gnu.org/archive/html/info-auctex/2019-10/msg1.html

[2]  
https://www.gnu.org/software/auctex/manual/auctex/Installation.html#Installation




Re: Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-14 Thread Jose Maria Martin Olalla
Many thanks Arash,

AUCTeX version is 12.2

AUCTeX, emacs and the whole texmf were installed via apt install

I evaluated the code in scratch, or I think so: M+: and the code, no line
breaks. The minibuffer returned nil.

I opened a *.tex file with a TeX-master in local variables. However the
full AUCTeX bundle for LaTeX files was not available in the major mode.
Instead, the default TeX environment that is loaded with 'emacs -Q
filename.tex' was available. As if the eval code did not activate AUCTeX
actually. As a result C-c C-e did not launch an environment.

Best,


On Mon, Nov 13, 2023 at 8:14 PM Arash Esbati  wrote:

> Jose Maria Martin Olalla  writes:
>
> > 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.
>
> Which version of AUCTeX are you using, and how did you install it?
>
> > 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)))]
>
> Can you come up with a recipe to reproduce this issue starting with
> emacs -Q?  So something like:
>
>   • emacs -Q
>   • eval in scratch:
> (progn
>   (package-initialize t)
>   (package-activate 'auctex))
>   • Open a .tex file with TeX-master in local variables
>   • M-x reftex-mode RET
>   • M-x toggle-debug-on-error
>   • C-c C-e equation RET
>
> And the see what happens.
>
> Best, Arash
>


-- 
José María Martín Olalla
--
Profesor Titular
Departamento de Física de la Materia Condensada
Universidad de Sevilla
+349545-56075
Twitter: https://twitter.com/MartinOlalla_JM
ResearchID: M-3265-2014 
ORCID: https://orcid.org/-0002-3750-9113
Repositorio institucional: https://idus.us.es/author-profiles/author?id=2522


Re: Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-13 Thread Arash Esbati
Jose Maria Martin Olalla  writes:

> 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.

Which version of AUCTeX are you using, and how did you install it?

> 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)))]

Can you come up with a recipe to reproduce this issue starting with
emacs -Q?  So something like:

  • emacs -Q
  • eval in scratch:
(progn
  (package-initialize t)
  (package-activate 'auctex))
  • Open a .tex file with TeX-master in local variables
  • M-x reftex-mode RET
  • M-x toggle-debug-on-error
  • C-c C-e equation RET

And the see what happens.

Best, Arash



Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-12 Thread Jose Maria Martin Olalla
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?



-- 
José María Martín-Olalla
--


Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-12 Thread Jose Maria Martin Olalla
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?