Questions tagged [compile-mode]

10 questions
16
votes
3 answers

emacs compile buffer auto close?

I want to auto close the compile buffer when there is no error and no warning,but i want to show it when there is warnings. Anyone can help me? This code from emacswiki only do the first requirement. How to change it? ;; Helper for compilation.…
Iceman
  • 367
  • 1
  • 3
  • 5
10
votes
4 answers

Don't display *compilation* buffer in Emacs until the process exits with error or warning

I am looking for a way to have the Emacs compilation buffer triggered by M-x compile, M-x recompile or some compile on save script only appear when the compilation exits either with an error or a warning. Note that I am not looking for a way to…
Rovanion
  • 4,382
  • 3
  • 29
  • 49
4
votes
2 answers

OutOfMemoryException thrown only when compiling in release

I have a C# Console application that allocates lots of small objects and arrays. These objects have a short life time and quickly get cleaned up by the garbage collector. To the question "why do you need to allocate so much short life objects, you…
tigrou
  • 4,236
  • 5
  • 33
  • 59
2
votes
3 answers

pathname translation in Emacs for finding local source file path from remote (ssh compile) error filenames

Is there some sort of general pathname-rewriting/normalizing facility I can exploit in Emacs to allow source files in compile-mode to be translated to local paths based on remote paths? I was hoping to use symbolic links, but that's not working for…
Jonathan Graehl
  • 9,182
  • 36
  • 40
2
votes
1 answer

How do I get the currently matched line from a compilation-error-regexp-alist file function?

I'm running a command with compile so I can link from error messages to the associated source, but I need to transform a chunk of the content of matched lines to get the file to link to. (The line shows a clojure namespace, like foo-bar.quux, which…
duelin markers
  • 553
  • 3
  • 14
2
votes
1 answer

Temporarily overriding compilation mode regexp alist: dynamic binding weirdness?

I'm working on a program mode, which has various different calls to assemblers, programmers and other external programs. My cunning plan was to handle all of these with the compile function, passing an explicit compile-command that depends on which…
Rupert Swarbrick
  • 2,793
  • 16
  • 26
1
vote
1 answer

capturing pva multiline compiler output for emacs compile mode

I wish to compile hSpice pva through emacs. However, compile-mode does not parse the output properly. This is the error message the pva compiler generates (the pvaE section): Parsing include file 'include/constants.vams' Parsing include file…
Ari Sharon
  • 11
  • 1
1
vote
1 answer

How do I replace compile-internal with compilation start?

I use this valgrind.el to run valgrind inside emacs. But the newest version of emacs has deprecated compile-internal. I don't know nearly enough about elisp to figure out how to convert the compile-internal call to a compilation-start call. This is…
0
votes
1 answer

elisp compile, add a regexp to error detection

I am starting with emacs, and don't know much elisp. Nearly nothing, really. I want to use ack as a replacement of grep. These are the instructions I followed to use ack from within emacs: http://www.rooijan.za.net/?q=ack_el Now I don't like the…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
0
votes
1 answer

emacs compilation: call a script in background

I have a script (let's call it ding) which plays a sound in the background (essentially just calls paplay &). I wish to call this from emacs after I finish compiling something, like so: M-x compile, make && ding Unfortunately because paplay…
Felix
  • 2,064
  • 3
  • 21
  • 31