bug-auctex
[Top][All Lists]
Advanced

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

bug#25674: Support for subfiles in `reftex-TeX-master-file'


From: Arash Esbati
Subject: bug#25674: Support for subfiles in `reftex-TeX-master-file'
Date: Mon, 13 Feb 2017 09:34:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Hi Mosè,

Mosè Giordano <address@hidden> writes:

> 2017-02-10 9:48 GMT+01:00 Arash Esbati <address@hidden>:
>>
>> 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
"address@hidden" (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.

Attachment: 0001-Match-all-characters-in-optional-argument-of-documen.patch
Description: Text Data

Best, Arash

reply via email to

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