Received: (at 36217) by debbugs.gnu.org; 19 Jun 2019 11:05:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 19 07:05:43 2019 Received: from localhost ([127.0.0.1]:46097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hdYPP-0005zA-4q for submit <at> debbugs.gnu.org; Wed, 19 Jun 2019 07:05:43 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:34186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ikumi@HIDDEN>) id 1hdYPN-0005yv-4F for 36217 <at> debbugs.gnu.org; Wed, 19 Jun 2019 07:05:41 -0400 Received: from localhost (210-20-196-114.rev.home.ne.jp [210.20.196.114]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id CCC39AD; Wed, 19 Jun 2019 20:05:37 +0900 (JST) From: Ikumi Keita <ikumi@HIDDEN> To: Ryan Kavanagh <rak@HIDDEN> Subject: Re: bug#36217: style hooks not automatically applied for non-master files In-reply-to: <20190615012939.clngbfgencbffv5l@HIDDEN> References: <20190615012939.clngbfgencbffv5l@HIDDEN> Comments: In-reply-to Ryan Kavanagh <rak@HIDDEN> message dated "Fri, 14 Jun 2019 21:29:39 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <87446.1560942336.1@localhost> Date: Wed, 19 Jun 2019 20:05:37 +0900 Message-ID: <87448.1560942337@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36217 Cc: 36217 <at> debbugs.gnu.org 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: -1.0 (-) Hi Ryan, >>>>> Ryan Kavanagh <rak@HIDDEN> writes: > Steps to reproduce > ------------------ > Create the following directory hierarchy > foo/ > main.tex > foo.tex > with the following contents: [ ... ] > Then > 1. Make sure foo/auto does not exist. > 2. Open foo.tex and notice that \cref{sec:foo} is not syntax-highlighted > 3. Exit emacs and open main.tex. Notice that \cref{sec:foo} has > highlighting. > 4. Open foo.tex again. Same problem as #2. At this point, the 'auto/' > directory does not yet exist. > 5. Exit emacs and open main.tex. Go 'C-c C-n' and exit. > 6. Open foo.tex and observe that '\cref' has highlighting. This is > because 'auto/main.el' runs the style hook "cleveref". In my humble opinion, this is an expected behavior of AUCTeX. By default, AUCTeX does not propagate information about parent (master) file to its child file. Perhaps something similar to what you want is the user option `TeX-auto-save'. When this is enabled, auto/main.el is created automatically whenever you save main.tex. ,----[ Info node (auctex)Parsing Files ] | AUCTeX depends heavily on being able to extract information from the | buffers by parsing them. Since parsing the buffer can be somewhat slow, | the parsing is initially disabled. You are encouraged to enable them by | adding the following lines to your '.emacs' file. | | (setq TeX-parse-self t) ; Enable parse on load. | (setq TeX-auto-save t) ; Enable parse on save. | | The latter command will make AUCTeX store the parsed information in | an 'auto' subdirectory in the directory each time the TeX files are | stored, *note Automatic Local::. `---- Regards, Ikumi Keita
bug-auctex@HIDDEN
:bug#36217
; Package auctex
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Jun 2019 01:29:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 14 21:29:50 2019 Received: from localhost ([127.0.0.1]:38150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hbxVt-0001fD-OY for submit <at> debbugs.gnu.org; Fri, 14 Jun 2019 21:29:50 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:47064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ryanakca@HIDDEN>) id 1hbxVr-0001ey-As for submit <at> debbugs.gnu.org; Fri, 14 Jun 2019 21:29:48 -0400 Received: by mail-qt1-f176.google.com with SMTP id h21so4609388qtn.13 for <submit <at> debbugs.gnu.org>; Fri, 14 Jun 2019 18:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=/eR+MHh5Ap1M6PnOJX6AnMsnby7P6lmtEm2juwaJP/4=; b=YpWcr3N/ZR34nWdWqTXDudnndOQSyJyZ8dXXh/BHgXOW7wGWei+OPU8cZLAedMVny7 f0Mm044iV6KAHvvHj3N1hTFn47U4QM8SAAK/113mucnREQ34ZU8ZvGk1VA6mDUEjmBy8 S0eSha4BKMBGN9WeHxPUXnOCxYCwyMsqkCYogHOAjwvGP9Ha8he9WFC4OQPQKDvYB+Q9 0JrXz89e8pWWIuF5f4my7IJ0foxxvXKWfhub8YQ7Tj9+NUsE2R/SpfMu/8hwGjVonJyr x7htGXVhW3NC7p134w2mfjJwXMkShMOXVjbekUCLvqO76fZX1QEr8GKly54MNY0L1Out 1pdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-disposition:user-agent; bh=/eR+MHh5Ap1M6PnOJX6AnMsnby7P6lmtEm2juwaJP/4=; b=i24r6ugTpb+ce+nv+LBFdPH1RtPSKDWjrBI7eaMn6bfCyJegM6m88eERg3FzFWrhTc m3rWC8kZSIExLgW16DHvGznPVP24y1Wc31cbToSg18ryNsqN4ebsuPscRBE6OXmbniIb hdaioKwNBfuhW8usZXHs+dLw99YJU3iua3AVaEU4xZRnDjZztXdfyYgfdMLL+CG66QeW 8/fJ6lxSOi8RJgK2QGJR/VlvWnDVlYArZxARQqV+i1juHO+jZCrFQquPM5Wli5HItcGQ ORpH6uJIt4jeL/qg1HfmqizHqH1rPglxrMgUftZy1gNFicTde6B2wtnB+HtYoekzk2ay n+PQ== X-Gm-Message-State: APjAAAXeO8rgjiwlvwdneiohfE02IXBP0vJt090ipnNFjMvxNmvuKDiA J2wYO94P9yqdp1K6KMmBTdJkF/wC X-Google-Smtp-Source: APXvYqxARCvJUxwQmYfVaELT+zMjmBNtfCvZzGY9hlxFTlc+ilvqk3YXuIdEyWDj64y20126pMZGvg== X-Received: by 2002:ac8:360d:: with SMTP id m13mr33930207qtb.105.1560562181402; Fri, 14 Jun 2019 18:29:41 -0700 (PDT) Received: from zeta.rak.ac (c-98-239-128-52.hsd1.pa.comcast.net. [98.239.128.52]) by smtp.gmail.com with ESMTPSA id f25sm3304246qta.81.2019.06.14.18.29.39 for <submit <at> debbugs.gnu.org> (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 18:29:40 -0700 (PDT) Date: Fri, 14 Jun 2019 21:29:39 -0400 From: Ryan Kavanagh <rak@HIDDEN> To: submit <at> debbugs.gnu.org Subject: style hooks not automatically applied for non-master files Message-ID: <20190615012939.clngbfgencbffv5l@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fq2t3oq6prggvd6b" Content-Disposition: inline X-message-flag: Please do NOT send HTML e-mail or MS Word attachments - use plain text instead X-GPG-ID: 0x8F7BF8FC4A11C97A X-GPG-Fingerprint: 4E46 9519 ED67 7734 268F BD95 8F7B F8FC 4A11 C97A User-Agent: NeoMutt/20180716 X-Spam-Score: 0.5 (/) 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: -0.5 (/) --fq2t3oq6prggvd6b Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Package: auctex Version: 12.1.2 WLOG, assume the TeX-master file is called "main.tex". Style hooks for non-master files do not get applied unless the file "auto/main.el" exists and has the appropriate "TeX-add-style-hook" invocations. This is problematic when, e.g., you checkout a multi-file LaTeX document from a VCS or when you accidentally remove the "auto" subdirectory. Expected behaviour ------------------ When I open a non-master file, AUCTeX should apply all of the style hooks from the master file, even when auto/main.el does not exist. Steps to reproduce ------------------ Create the following directory hierarchy foo/ main.tex foo.tex with the following contents: =3D=3D> main.tex <=3D=3D BEGIN \documentclass{minimal} \usepackage{cleveref} \begin{document} \section{Foo} \label{sec:foo} Contents of \cref{sec:foo} are input by the command: \input{foo.tex} \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: =3D=3D> main.tex <=3D=3D END =3D=3D> foo.tex <=3D=3D BEGIN This is the content of \cref{sec:foo}. %%% Local Variables: %%% mode: latex %%% TeX-master: "main" %%% End: =3D=3D> foo.tex <=3D=3D END Then 1. Make sure foo/auto does not exist. 2. Open foo.tex and notice that \cref{sec:foo} is not syntax-highlighted 3. Exit emacs and open main.tex. Notice that \cref{sec:foo} has highlighting. 4. Open foo.tex again. Same problem as #2. At this point, the 'auto/' directory does not yet exist. 5. Exit emacs and open main.tex. Go 'C-c C-n' and exit. 6. Open foo.tex and observe that '\cref' has highlighting. This is because 'auto/main.el' runs the style hook "cleveref". Workaround ---------- 1. Open the TeX-master file 2. Call TeX-normal-mode (C-c C-n) to regenerate the auto/main.el --=20 |)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F |\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A --fq2t3oq6prggvd6b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQUzBAABCgAdFiEETkaVGe1ndzQmj72Vj3v4/EoRyXoFAl0ESgAACgkQj3v4/EoR yXrBjigAmW/I87ONODRjXtPqbs0bg6nIfxtymQ7BgDB2hop5cEPeZ62pp5kV4DCf Yvl0fU5Kfhk4IYTwlCW7ajCMQG7zaKvd3fZPhKZGJ2wWdGAE5Vc2a3uOioqRqNb7 CJb0lSCH5T4Q+R1QoW940oojDqN3A3iTLkO5KNH1JopoUmvGMS/BHZZk559UVoy7 YvVpbiEEQQfax7pu337Fzt6GakvOSkRZhKrfa+A7G56eLxvwN+9XWvSmffyD6V9j 1hKra4oSrvh0vBPxJPN0DrH0DAJp9jBi6mu3tQRFji6FK+u2zw6+pMezITeaVh8x 7kqfeAnG3ce3LQ1kwXjXLRdnZUHZf1I+7Y9at+FHW5k4zFXxFkvKxxgo1aflrun8 r8V6iVdmFVeTyRyVNPhsxCiv0J2uOvkjJr+mDIBKfquHFgBknDRQu4d4jPu5cBIE BdHwf+uufWz8vftpNWZVNptG6ZqZVJS/FJx42ctKc2Cuj/0VfHKzja0r71NP1zOM N645Ot8i/Ge+zSBqbxiSrPOzUVowMMvJ1D8f38j+nBRoDiKLlkqYPa/8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SUTcxQrYjxxix1mKFUkHtesmTlKWNHEkpsy ay7TMNQkjAqJFnuz/Qk1XOlMWB6ldBmf7d6vFgwbbXirQX/Vfog= =WCAl -----END PGP SIGNATURE----- --fq2t3oq6prggvd6b--
Ryan Kavanagh <rak@HIDDEN>
:bug-auctex@HIDDEN
.
Full text available.bug-auctex@HIDDEN
:bug#36217
; Package auctex
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.