Re: Not all reftex commands within latex block generate appropriate message

2023-02-17 Thread Alain . Cochard
alain.coch...@unistra.fr writes on Fri 17 Feb 2023 07:49:

 > I have sent a message to bug-auc...@gnu.org.

I got answers.  See this thread:
https://lists.gnu.org/archive/html/bug-auctex/2023-02/threads.html#00035


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: Not all reftex commands within latex block generate appropriate message

2023-02-16 Thread Alain . Cochard
Ihor Radchenko writes on Thu 16 Feb 2023 13:00:

 > I'd say that it is reftex bug. It is generally expected that major
 > modes do work in non-file buffers in Emacs.

Thanks.  I have sent a message to bug-auc...@gnu.org.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: Not all reftex commands within latex block generate appropriate message

2023-02-16 Thread Ihor Radchenko
alain.coch...@unistra.fr writes:

> Fraga, Eric writes on Wed 15 Feb 2023 12:30:
>
>  > I think this is indeed likely to be the reason.
>
> Thanks for the confirmation.  I was hoping that someone can arrange so
> that the self explanatory message is shown each time, not the cryptic
> one :-)

I'd say that it is reftex bug. It is generally expected that major modes
do work in non-file buffers in Emacs.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Not all reftex commands within latex block generate appropriate message

2023-02-15 Thread Alain . Cochard
Fraga, Eric writes on Wed 15 Feb 2023 12:30:

 > I think this is indeed likely to be the reason.

Thanks for the confirmation.  I was hoping that someone can arrange so
that the self explanatory message is shown each time, not the cryptic
one :-)

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: Not all reftex commands within latex block generate appropriate message

2023-02-15 Thread Fraga, Eric
On Wednesday, 15 Feb 2023 at 13:15, alain.coch...@unistra.fr wrote:
> did I understand what I presume is the reason:
>
>reftex-access-scan-info: RefTeX works only in buffers visiting a file

I think this is indeed likely to be the reason.

Similar issues arise with, for instance, ledger in that some of the
capabilities of ledger-mode assume that there is a file behind the
buffer.  Not sure there is any solution to this other than tangling your
code to a file and visiting that file.

-- 
: Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50


Not all reftex commands within latex block generate appropriate message

2023-02-15 Thread Alain . Cochard


Issued after 'org-edit-special' within a latex block (like the one
below) the command 'reftex-toc' generates the dreadful

   reftex-TeX-master-file: Wrong type argument: stringp, nil

Only after some debugging time and trying

   reftex-label

did I understand what I presume is the reason:

   reftex-access-scan-info: RefTeX works only in buffers visiting a file


#+begin_export latex
\documentclass{article}
\begin{document}
\section{1}
\section{2}
\end{document}
#+end_export

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]