bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28456: 11.90.2.2017-07-25; \\input parsing


From: Pierre Lorenzon
Subject: bug#28456: 11.90.2.2017-07-25; \\input parsing
Date: Thu, 14 Sep 2017 07:55:43 +0200 (CEST)

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  In addition check if the bug is reproducable with an
up-to-date version of AUCTeX.  So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.

If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.

Your report will be posted for the auctex package at the GNU bug
tracker.  Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=auctex
to browse existing AUCTeX bugs.
------------------------------------------------------------------------

Hi,

Here is the sample file:

>>>  -- .tex 

\begin{plnpsudpb}{À rendre le 19 octobre 2016}
  \label{PB-I}
  %%
  \input{Introduction}
  %% 
  \input{../../Exercices/Ensembles/Applications-Proprietes}
  %%
  \begin{exercice}[L'addition dans $\Nat$]

   
  \end{exercice}
  %% 
\end{plnpsudpb}
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "Header"
%%% End: 

>>>  -- End .tex 

And here is the style .el file produced by auctex:

>>>  -- .el 

(TeX-add-style-hook
 "Probleme-I"
 (lambda ()
   (TeX-run-style-hooks
    "Introduction")
   (LaTeX-add-labels
    "PB-I"))
 :latex)


>>>  -- End .el

As if second \input
  \input{../../Exercices/Ensembles/Applications-Proprietes}

were not parsed when first one

  \input{Introduction}

is. In fact looking carefully at regexp used to match \\input
which is part of the LaTeX-auto-regexp-list variable, it
clearly appears that an path like \input{../../something} will
not be parsed.

Question is why? When LaTex allows inputs with so complexe
paths, why are they not parse by auctex?

Surely I can add somehting suitable to the parse variables so
that these inputs will be detected but why is it not done by
default in auctex?


Regards

Pierre




Emacs  : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu)
 of 2017-09-11
Package: 11.90.2.2017-07-25

current state:
==============
(setq
 AUCTeX-date "2017-07-25"
 window-system nil
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
                  "/home/devel/.emacs.d/elpa/auctex-11.91.0/style"
                  "/usr/local/share/texmf/tex/latex/auto/"
                  "/usr/local/share/texmf/tex/latex/style/" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master nil
 TeX-command-list '(("pdf" "ps2pdf13 %s.ps" TeX-run-command nil t)
                    ("Hacha" "hacha %s.html" TeX-run-command nil t)
                    ("PHPindex" "hacha -o index.php %s.html" TeX-run-command
                     nil t)
                    ("PHP" "hevea -fix -o %s.php %t" TeX-run-command nil t)
                    ("Info" "hevea -fix -info %t" TeX-run-command nil t)
                    ("Txt" "hevea -fix -text %t" TeX-run-command nil t)
                    ("Hevea" "hevea -fix %t" TeX-run-command nil t)
                    ("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil
                     (plain-tex-mode texinfo-mode ams-tex-mode) :help
                     "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
                     (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with HTML output")
                    ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
                    ("ConTeXt" "texexec --once --texutil %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
                     (context-mode) :help "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
                     "Run BibTeX")
                    ("View" "dvi2tty -q -w 132 %s" TeX-run-command t t :help
                     "Run Text viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help
                     "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
                     "Generate PostScript file")
                    ("Index" "makeindex %s" TeX-run-command nil t :help
                     "Create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
                     :help "Check LaTeX file for correctness")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
                     t :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help
                     "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help
                     "Run an arbitrary command")
                    )
 )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]