unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: RDS <rds1944@gmail.com>
To: 42624@debbugs.gnu.org
Subject: bug#42624: emacs 26.3 : tex-mode.el : tex & latex compile failures
Date: Sat, 1 Aug 2020 19:27:07 -0700	[thread overview]
Message-ID: <CABj_U1M-98RvMH+O8YTcc2ddD24XgFrsPUusLKonFcMQd4M7kg@mail.gmail.com> (raw)
In-Reply-To: <CABj_U1Ndv7qz1Pc7XwcDCQFN9NCg0CkQG4ZAFBxDtosG32=__w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 3100 bytes --]

  reply	other threads:[~2020-08-02  2:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31  0:25 bug#42624: emacs 26.3 : tex-mode.el : tex & latex compile failures RDS
2020-08-02  2:27 ` RDS [this message]
2020-08-03 18:09 ` bug#42624: Additional solutions RDS
2020-08-03 20:35 ` bug#42624: More info RDS
2020-08-07  0:33 ` bug#42624: emacs - tex-mode.el - build failure - not a bug RDS
2020-08-07  7:08   ` bug#42570: " Lars Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2020-07-28  2:14 bug#42570: tex-mode compiles / builds only in /tmp RDS
2020-07-28 23:19 ` bug#42570: tex-mode compiles / builds only in /tmp - more info RDS
2020-08-04 10:25   ` Lars Ingebrigtsen
2020-08-06  2:06 ` bug#42570: Lars suggested tests RDS
2020-08-06  7:26   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABj_U1M-98RvMH+O8YTcc2ddD24XgFrsPUusLKonFcMQd4M7kg@mail.gmail.com \
    --to=rds1944@gmail.com \
    --cc=42624@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).