GNU bug report logs -
#42624
emacs 26.3 : tex-mode.el : tex & latex compile failures
Previous Next
Reported by: RDS <rds1944 <at> gmail.com>
Date: Fri, 31 Jul 2020 00:26:02 UTC
Severity: normal
Tags: notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 42624 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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))
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.