GNU bug report logs - #22504
2014-11-01; RefTeX fails to find \input unless it is at the beginning of the line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: post@HIDDEN; dated Sun, 31 Jan 2016 18:41:01 UTC; Maintainer for auctex is bug-auctex@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Feb 2016 21:52:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 01 16:52:01 2016
Received: from localhost ([127.0.0.1]:55346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aQMO9-0003AS-Le
	for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 16:52:01 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57910)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMO8-0003AF-7z
 for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 16:52:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMO1-0000Iv-QC
 for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 16:51:55 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46887)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMO1-0000Ij-NF
 for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 16:51:53 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48728)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMNw-0002BV-Mj
 for bug-auctex@HIDDEN; Mon, 01 Feb 2016 16:51:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMNl-00009b-4H
 for bug-auctex@HIDDEN; Mon, 01 Feb 2016 16:51:42 -0500
Received: from plane.gmane.org ([80.91.229.3]:52253)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMNk-00008r-TS
 for bug-auctex@HIDDEN; Mon, 01 Feb 2016 16:51:37 -0500
Received: from list by plane.gmane.org with local (Exim 4.69)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1aQMNi-0007EV-VV
 for bug-auctex@HIDDEN; Mon, 01 Feb 2016 22:51:35 +0100
Received: from hsi-kbw-109-193-084-181.hsi7.kabel-badenwuerttemberg.de
 ([109.193.84.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
 id 1AlnuQ-0007hv-00
 for <bug-auctex@HIDDEN>; Mon, 01 Feb 2016 22:51:34 +0100
Received: from esbati by
 hsi-kbw-109-193-084-181.hsi7.kabel-badenwuerttemberg.de with local (Gmexim
 0.1 (Debian)) id 1AlnuQ-0007hv-00
 for <bug-auctex@HIDDEN>; Mon, 01 Feb 2016 22:51:34 +0100
X-Injected-Via-Gmane: http://gmane.org/
Mail-Followup-To: bug-auctex@HIDDEN
To: bug-auctex@HIDDEN
From: Arash Esbati <esbati@HIDDEN>
Subject: Re: bug#22504: 2014-11-01;
 RefTeX fails to find \input unless it is at the beginning of the line
Date: Mon, 01 Feb 2016 22:50:37 +0100
Lines: 36
Message-ID: <n8ok11$969$1@HIDDEN>
References: <87egcxy73e.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: hsi-kbw-109-193-084-181.hsi7.kabel-badenwuerttemberg.de
Mail-Copies-To: never
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

post@HIDDEN writes:

> The main file of my LaTeX document is mostly just a wrapper that
> includes the actual content:
>
>   \clearpage \input{algebra}
>   \clearpage\input{constructions}
>   \clearpage
>   \input{logic}
>   \clearpage
>   \input{model}
>   \clearpage
>   \input{derived}
>
> I would expect RefTeX to properly follow the \input commands, and find
> sections and labels in all the files. However, RefTeX only sees the
> sections and labels from logic, model and derived - the ones from
> algebra and constructions are missing. It seems that following \input
> only works if that command is right at the beginning of the file.

This is a documented feature of RefTeX:

,----
| 6.9 Problems and Work-arounds
| 
|     LaTeX commands
|     \input, \include, and \section (etc.) statements have to be first on
|     a line (except for white space).
| 
| http://www.gnu.org/software/auctex/manual/reftex.html#SEC54
`----

Move \input{algebra} and \input{constructions} into single lines and
you should be done.

Best, Arash





Information forwarded to bug-auctex@HIDDEN:
bug#22504; Package auctex. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Jan 2016 18:40:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 31 13:40:04 2016
Received: from localhost ([127.0.0.1]:43434 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aPwuq-0001Li-Lt
	for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 13:40:04 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40028)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <post+laptop@HIDDEN>) id 1aPw64-00005z-Bn
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 12:47:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <post+laptop@HIDDEN>) id 1aPw5y-0008A7-7W
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 12:47:31 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34627)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <post+laptop@HIDDEN>) id 1aPw5y-0008A2-3u
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 12:47:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59232)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <post+laptop@HIDDEN>) id 1aPw5w-0001t6-UW
 for bug-auctex@HIDDEN; Sun, 31 Jan 2016 12:47:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <post+laptop@HIDDEN>) id 1aPw5t-00089b-OH
 for bug-auctex@HIDDEN; Sun, 31 Jan 2016 12:47:28 -0500
Received: from zwei.ralfj.de ([85.214.70.9]:58818)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <post+laptop@HIDDEN>) id 1aPw5t-00088Y-Eu
 for bug-auctex@HIDDEN; Sun, 31 Jan 2016 12:47:25 -0500
Received: from r-schnelltop.local (p54A58904.dip0.t-ipconnect.de
 [84.165.137.4]) by mx.ralfj.de (Postfix) with ESMTPS id C14B117D00DA
 for <bug-auctex@HIDDEN>; Sun, 31 Jan 2016 18:47:18 +0100 (CET)
Received: by r-schnelltop (Postfix, from userid 1000)
 id A6BC6160277; Sun, 31 Jan 2016 18:47:17 +0100 (CET)
From: post@HIDDEN
To: bug-auctex@HIDDEN
Subject: 2014-11-01;
 RefTeX fails to find \input unless it is at the beginning of the line
Date: Sun, 31 Jan 2016 18:47:01 +0100
Message-ID: <87egcxy73e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 31 Jan 2016 13:40:04 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


Dear developers,

The main file of my LaTeX document is mostly just a wrapper that
includes the actual content:

  \clearpage \input{algebra}
  \clearpage\input{constructions}
  \clearpage
  \input{logic}
  \clearpage
  \input{model}
  \clearpage
  \input{derived}

I would expect RefTeX to properly follow the \input commands, and find
sections and labels in all the files. However, RefTeX only sees the
sections and labels from logic, model and derived - the ones from
algebra and constructions are missing. It seems that following \input
only works if that command is right at the beginning of the file.

Kind regards,
Ralf

Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.6)
 of 2016-01-22 on binet, modified by Debian
Package: 2014-11-01

current state:
==============
(setq
 AUCTeX-date "2014-11-01"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("/var/lib/auctex/emacs24/" "/usr/share/emacs/site-lisp/auctex/style"
                  "/home/r/.emacs.d/auctex/auto" "/home/r/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX
                     nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX" "%(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode)
                     :help "Run AMSTeX")
                    ("ConTeXt" "texexec --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil
                     (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "texexec %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
                    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
                    ("View" "%V" TeX-run-discard-or-function t t :help "Run 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")
                    ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
                     "Check LaTeX file for correctness")
                    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help
                     "Check LaTeX file for common mistakes")
                    ("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"))
 )




Acknowledgement sent to post@HIDDEN:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#22504; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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