[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command to open logfile

From: jfbu
Subject: Re: Command to open logfile
Date: Sat, 13 Feb 2021 12:50:46 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

Le 13/02/2021 à 12:38, Maximilian Wuttke a écrit :
On 13/02/2021 10:36, Pieter van Oostrum wrote:
It would be useful, and very easy to implement, to have a command that brings 
up the log file belonging to the current TeX file.

Do you mean something like this?

(defun TeX-find-master-log ()
   "Open the log file associated to the TeX project"
   (find-file (concat (TeX-master-file) ".log")))

At least on my system, I only have a log file for the "master" file. The
above command opens this log file.

I have had this in my custom TeX-command-list for ages, works fine for me

     ("voir le log" "(lambda () (view-file (TeX-active-master \"log\" t)) 
(flyspell-mode-off))" TeX-run-function nil t :help "Ouvre le log en mode view-mode")

although TeX-command-list did not like a lot being customized
at least some time ago in the distant past and foggy memories

(every few decades I check if I need to incorporate into
TeX-command-list some nice upstream novelties)

not sure if the flyspell-mode-off is needed/useful,

and the log is opened in view-mode mode

reply via email to

[Prev in Thread] Current Thread [Next in Thread]