GNU bug report logs - #73854
29.4; tex-mode: unexpected and inconsistent behaviour of `tex-compile`, `tex-file`, and `tex-view`

Previous Next

Package: emacs;

Reported by: Thalis Charakas <thales1 <at> protonmail.com>

Date: Thu, 17 Oct 2024 18:38:02 UTC

Severity: normal

Found in version 29.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 73854 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stephen Berman <stephen.berman <at> gmx.net>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: thales1 <at> protonmail.com, 73854 <at> debbugs.gnu.org
Subject: Re: bug#73854: 29.4; tex-mode: unexpected and inconsistent
 behaviour of `tex-compile`, `tex-file`, and `tex-view`
Date: Sat, 19 Oct 2024 14:54:29 +0300
> From: Stephen Berman <stephen.berman <at> gmx.net>
> Cc: Thalis Charakas <thales1 <at> protonmail.com>,  73854 <at> debbugs.gnu.org
> Date: Sat, 19 Oct 2024 13:31:05 +0200
> 
> diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
> index 6fc49800018..acb5bb4b860 100644
> --- a/lisp/textmodes/tex-mode.el
> +++ b/lisp/textmodes/tex-mode.el
> @@ -2530,6 +2530,7 @@ tex-compile
>        (if (tex-shell-running)
>            (tex-kill-job)
>          (tex-start-shell))
> +      (setq tex-print-file (expand-file-name (tex-main-file)))
>        (tex-send-tex-command cmd dir))))
> 
>  (defun tex-start-tex (command file &optional dir)
> 
> But I'm not familiar with the tex-mode.el code and don't know if this
> change might have unwanted consequences (though it seems prima facie
> safe).

Thanks.

Stefan, do you agree with this fix?




This bug report was last modified 191 days ago.

Previous Next


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