unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42570: tex-mode compiles / builds only in /tmp
@ 2020-07-28  2:14 RDS
  2020-07-28 23:19 ` bug#42570: tex-mode compiles / builds only in /tmp - more info RDS
  2020-08-06  2:06 ` bug#42570: Lars suggested tests RDS
  0 siblings, 2 replies; 11+ messages in thread
From: RDS @ 2020-07-28  2:14 UTC (permalink / raw)
  To: 42570

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

emacs 26.3. 2 different builds. 2 distinct OSs.

One build is custom inside Slackware; another build is standard issue from
Fedora 32.

Results below are identical for both situations.

If the tex / latex source (or a symbolic link) resides in /tmp directory,
everything from the tex mode menu functions as expected.

If the source is anywhere else in the directory structure, the first step,
compilation (tex / latex), fails because it can *not* find the source file.
Yet, if I use my own custom elisp script or invoke the relevant commands
manually, there is *no* problem.

The builtin tex-mode.el script seems to expect all code to be only in /tmp
or nothing will occur.

Am I missing something? A variable setting? Some other configuration aspect?

Thanks for your attention.

Guido

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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* bug#42624: emacs 26.3 : tex-mode.el : tex & latex compile failures
@ 2020-07-31  0:25 RDS
  2020-08-02  2:27 ` RDS
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: RDS @ 2020-07-31  0:25 UTC (permalink / raw)
  To: 42624

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

emacs /path/to/src.tex -> C-c C-f -> ok
  buffer *tex-shell* pwd -> /path/to

emacs /path/to -> C-x d -> src.tex -> C-c C-f -> src.tex not found
(many other variations lead to similar failure)
  buffer *tex-shell* pwd -> /tmp

Problem traced to function tex-send-tex-command(...).
It does *not* change directory to location of src.tex

Remove or comment out this conditional stanza

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

Replace with

  (let (shell-dirtrack-verbose) (tex-send-command tex-shell-cd-command dir))

solves this error. Proper solution requires unless... to be repaired.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-08-07  7:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2020-07-31  0:25 bug#42624: emacs 26.3 : tex-mode.el : tex & latex compile failures RDS
2020-08-02  2:27 ` RDS
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

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