From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: RDS Newsgroups: gmane.emacs.bugs Subject: bug#42624: emacs 26.3 : tex-mode.el : tex & latex compile failures Date: Sat, 1 Aug 2020 19:27:07 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000180c1905abdbc4ef" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20573"; mail-complaints-to="usenet@ciao.gmane.io" To: 42624@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 02 04:28:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k23jO-0005Dv-8A for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Aug 2020 04:28:10 +0200 Original-Received: from localhost ([::1]:51606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k23jN-0003ZS-9d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 22:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k23jG-0003Z6-4m for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 22:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k23jF-0002fJ-PK for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 22:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k23jF-00039D-Jl for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 22:28:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: RDS Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Aug 2020 02:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42624 X-GNU-PR-Package: emacs Original-Received: via spool by 42624-submit@debbugs.gnu.org id=B42624.159633526712078 (code B ref 42624); Sun, 02 Aug 2020 02:28:01 +0000 Original-Received: (at 42624) by debbugs.gnu.org; 2 Aug 2020 02:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:41297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k23j1-00038k-4e for submit@debbugs.gnu.org; Sat, 01 Aug 2020 22:27:47 -0400 Original-Received: from mail-vs1-f41.google.com ([209.85.217.41]:46636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k23iz-00038X-Me for 42624@debbugs.gnu.org; Sat, 01 Aug 2020 22:27:46 -0400 Original-Received: by mail-vs1-f41.google.com with SMTP id b26so13047662vsa.13 for <42624@debbugs.gnu.org>; Sat, 01 Aug 2020 19:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=04cnmzn+E4zgFQWr/NDkEtYgG4qOobM8D9XKr/jECA8=; b=lkucZmtmKfx9179QnSpWH2aOHJdH/flu5x0oM7U+z6iDQ/fPxAP3iyjIIv5j+YhAQ7 /x7VwHuwy80VerQE6okIW4WZMmeVU00ZwQwYFzblIUUKqspvMHJGAcBXo1RE7XZohJJC 6dOkfYN1ZFDbrciHg3Lt8AI/X5vM+aSMDK7Nzh3eUzV/WRoWQXjHaZWemL2L/Y7NVnrR waKHeMdaomwVHtsM921DE+FFx0ZwECB4x2nARgmgxeLNtL5798D1PMH8CPea5ShvCQxg 28GNooeK04QO22DwMN87awYLHd2U170vLb2TB+5tgEwUUC15pkP/6E1NJKExy1gXWUUd 3MXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=04cnmzn+E4zgFQWr/NDkEtYgG4qOobM8D9XKr/jECA8=; b=nriDRD+5DtoI9cTGyTOKK2jb0+FJhcYdB994dzVoLrDAv7h7BCb69lTon6VyHuYOq7 kr5zSbDX7G9YdqIxv8+MxWC3TILpgz+kNuLBPTibloh0gH+maJ60QN/WmpHejbWXyjqx 8jaKk9nRfJjz6YmymO87TvEGDXSJZPHx2H5hAw/YW1kTBq8EHy37Oz7A5t4hkLvlctn5 tKOdzISaMb8mOA2p7G+ZIFuqZ2RckfHh/yMsWWQXKM0KOniupLcXprMRBm+9dhT/1Lsx 1l7YUO78Dd96BfefJYcWZNUEC51hvzFYXHNE1f76N3K2R7rEk0sbx8EssjQSIbiiBW89 lIYQ== X-Gm-Message-State: AOAM5306ZCYdDv23XaCsn7kVnCY+PeZ7se5hQ9NasCp3RQ2iqithziMZ tku4zpz3vsT4+72ilFD3AQjDK5EYK4ieheUhzZocEbfwY3E= X-Google-Smtp-Source: ABdhPJzzhaHbwcT1hSJqUQYncIgN7PTm+FpIRMmqBu2DSfkxYlLDZHBet2b1W7R276kpQ+IAb8jUBMZNdhwTGLVB288= X-Received: by 2002:a05:6102:30ba:: with SMTP id y26mr7560446vsd.122.1596335259649; Sat, 01 Aug 2020 19:27:39 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183800 Archived-At: --000000000000180c1905abdbc4ef Content-Type: text/plain; charset="UTF-8" Alternative repair. In the troublesome lines (unless (or (equal dir (let ((buf (tex-shell-buf-no-error))) (and buf (with-current-buffer buf default-directory)))) (not dir)) (let (shell-dirtrack-verbose) (tex-send-command tex-shell-cd-command dir))) change equal dir -> equal "garbage" in the line with unless. This will force the cd command to always execute. Here's the patch I made --- tex-mode.0.el 2020-07-31 16:22:30.380924724 -0700 +++ tex-mode.1.el 2020-07-31 14:00:36.344874591 -0700 @@ -2482,7 +2482,8 @@ (tex-send-tex-command compile-command dir))) (defun tex-send-tex-command (cmd &optional dir) - (unless (or (equal dir (let ((buf (tex-shell-buf-no-error))) + (setq nodir "garbage") ;; dir -> nodir force a cd nodir!=dir + (unless (or (equal nodir (let ((buf (tex-shell-buf-no-error))) (and buf (with-current-buffer buf default-directory)))) (not dir)) --000000000000180c1905abdbc4ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= Alternative repair. In the troublesome lines

<= font size=3D"4">=C2=A0 (unless (or (equal dir (let ((buf (tex-shell-buf-no-= error)))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(and buf (with-current-buffer buf
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 default-directory))))
=C2=A0 = =C2=A0 =C2=A0 (not dir))
=C2=A0 =C2=A0 (let (shell-dirtrack-verbose)
=C2=A0 =C2=A0 =C2=A0 (tex-send-command = tex-shell-cd-command dir)))

c= hange

=
=C2=A0 =C2=A0equal dir = -> equal "garbage" in the line with unless.

This will force the cd command to always execut= e.

Here's the patch I mad= e

--- tex-mode.0.el 2020-07-31 16:22:30.380924724 -0700
+++ tex-mode.1.el 2020-07-31 14:00:36.344874591 -0700
@@ -2482,7 +2482,8 @@
=C2=A0 =C2=A0 =C2=A0= (tex-send-tex-command compile-command dir)))
=C2=A0
=C2=A0(defun tex-send-tex-command (cmd &optional dir)=
-=C2=A0 (unless = (or (equal dir (let ((buf (tex-shell-buf-no-error)))
+=C2=A0 (setq nodir "garbage"= ) ;; dir -> nodir=C2=A0 force a cd=C2=A0 nodir!=3Ddir
+=C2=A0 (unless (or (equal nodir (l= et ((buf (tex-shell-buf-no-error)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (and buf (with-current-buffer buf=
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0default-directory))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (not dir))


--000000000000180c1905abdbc4ef--