GNU bug report logs - #61568
Problems using reftex from Org mode's latex blocks

Previous Next

Package: auctex;

Reported by: alain.cochard <at> unistra.fr

Date: Fri, 17 Feb 2023 06:46:01 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alain.Cochard <at> unistra.fr
To: bug-auctex <at> gnu.org
Cc: Alain Cochard <Alain.Cochard <at> unistra.fr>
Subject: Problems using reftex from Org mode's latex blocks
Date: Fri, 17 Feb 2023 07:45:37 +0100
Hello.

When Org mode is enabled, issuing [C-c '] (org-edit-special) within a
latex "export block" such as this one

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

one is put into a special buffer which is latex aware.  If reftex is
turned on in that buffer, 'Ref' is added to the modeline.  Now, upon
[C-c (], one gets

   RefTeX works only in buffers visiting a file

This is disappointing, but I could accept it.  However upon [C-c =] one
gets 

   Wrong type argument: stringp, nil

which is much more problematic.  Further, a prominent Org contributor
thinks it is a reftex bug and that "It is generally expected that
major modes do work in non-file buffers in Emacs." (thread
https://lists.gnu.org/archive/html/emacs-orgmode/2023-02/msg00388.html)

Hence this message.  

Regards

NB: I am not subscribed to bug-auctex <at> gnu.org


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard <at> 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 ]





This bug report was last modified 1 year and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.