GNU bug report logs - #25674
Support for subfiles in `reftex-TeX-master-file'

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Fri, 10 Feb 2017 08:50:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 25674 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: bug#25674: Support for subfiles in `reftex-TeX-master-file'
Date: Mon, 13 Feb 2017 09:34:12 +0100
[Message part 1 (text/plain, inline)]
Hi Mosè,

Mosè Giordano <mose <at> gnu.org> writes:

> 2017-02-10 9:48 GMT+01:00 Arash Esbati <arash <at> gnu.org>:
>>
>> I think the regexp can be reduced to
>>
>> --8<---------------cut here---------------start------------->8---
>>             (re-search-forward
>>              "^[[:space:]]*\\\\documentclass\\[\\([^]]+\\)\\]{subfiles}"
>>              nil t))
>> --8<---------------cut here---------------end--------------->8---
>>
>> as `reftex-TeX-master-file' checks if .tex extension is given or not.
>> With this change, one can use `C-c )' over all files in a project and
>> `C-c C-c' compiles a only subfile when issued in it.
>>
>> Any comments?  I would prepare a patch after confirmation here.
>
> `thing-at-point-file-name-chars' is a good list of characters
> allowable in filenames (maybe it won't work in some corner case but
> should do the job in most cases).  However I don't have a preference
> between your regexp and `thing-at-point-file-name-chars'.

Thanks for your response and the hint.  I see that @ is missing in
`thing-at-point-file-name-chars', I hope that nobody names a file
"m <at> in.tex" (corner case as you said), but I think we are on the safe
side if we match everything and reduce the support factor in future ;-)

@Tassilo: Can please apply this patch to Emacs master?  TIA.

[0001-Match-all-characters-in-optional-argument-of-documen.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
Best, Arash

This bug report was last modified 8 years and 102 days ago.

Previous Next


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