Message supression revisited.
I compile a Context file using an F key in my Gvim session. I I waste a lot of time watching messages scroll past in my Gvim window. What I am looking for is a command line switch or a combination of command line switches that will suppress ALL messages except for: 1. error messages that cause the compile to halt. 2. The message(s) that tells me that compilation is completed. If necessary I can live without this message. With most programs one can divert all ordinary messages to /dev/null but fatal error messages still return to the console or the console-equivalent (the 2> messages in Linux-speak.). Can this be done? Is there a way to modify texexec.rb to do this? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com
On Tue, 22 Aug 2006, John R. Culleton wrote:
I compile a Context file using an F key in my Gvim session. I I waste a lot of time watching messages scroll past in my Gvim window. What I am looking for is a command line switch or a combination of command line switches that will suppress ALL messages except for: 1. error messages that cause the compile to halt. 2. The message(s) that tells me that compilation is completed. If necessary I can live without this message.
How about a different approach. Set the makeprg to texmfstart texexec. Then set the appropriate errorformat. Then map your F key to :make | copen. That way, vim will parse texexec's output and show only the lines that have errors in the copen window. Latex-suite does something similar for latex. If you know the format of all the error messages that tex and context spew out, writing an error format is not difficult. As a bonus, you can jump to the line containing the error. Aditya
On Wednesday 23 August 2006 00:13, Aditya Mahajan wrote:
On Tue, 22 Aug 2006, John R. Culleton wrote:
I compile a Context file using an F key in my Gvim session. I I waste a lot of time watching messages scroll past in my Gvim window. What I am looking for is a command line switch or a combination of command line switches that will suppress ALL messages except for: 1. error messages that cause the compile to halt. 2. The message(s) that tells me that compilation is completed. If necessary I can live without this message.
How about a different approach. Set the makeprg to texmfstart texexec. Then set the appropriate errorformat. Then map your F key to :make | copen. That way, vim will parse texexec's output and show only the lines that have errors in the copen window.
Very interesting approach. But it would be better if the nonfatal error messsages were not issued in the first place. I will try what you suggest and see how the timing is. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com
participants (2)
-
Aditya Mahajan
-
John R. Culleton