Questions tagged [compilation-mode]

Compilation mode turns each error message in the buffer into a hyperlink; you can move point to it and type RET, or click on it with the mouse (see Mouse References), to visit the locus of the error message in a separate window.

Filter by
Sorted by
Tagged with
3
votes
0answers
55 views

show error message on its own line?

I'm using M-x compile to check for compilation errors and it's great. However, I'm wondering if I can get the actual error message to begin on its own line. For some reason the file path shows up as ...
6
votes
1answer
208 views

Read process output line by line

If there a way to read the output of a subprocess line by line, or at least to get it in small batches? I have a subprocess doing work in the background, and printing a line every time it completes ...
9
votes
1answer
1k views

Jumping to the first error — not warning — when compiling

The compilation-auto-jump-to-first-error option should make Emacs jump to the first error during compilation. However, it seems that Emacs treats warnings and errors in the same way, and jumps to the ...
0
votes
1answer
296 views

Changing the default-directory of an open compilation buffer

I have two different compile commands, and they need to run in different directories. I've gone through the trouble of making sure that if at all possible, I re-use the open compile buffer, rather ...
2
votes
1answer
60 views

Automatically reply to input-requests in compilation buffer

My situation is this: I compile by invoking a system that runs perl scripts that invoke the Visual Studio compiler, as well as running some pre-compile tasks. By and large, the system works fine. ...
3
votes
2answers
137 views

How to query-replace across all hits in a compilation-mode buffer

How can I run a query-replace on the all the files pointed to by an arbitrary compilation-mode buffer? I think to be usable this would need to be resumable from point in the compilation-mode buffer. ...
3
votes
1answer
726 views

Set variables based on path without using directory-local variables

I want to set variables, in particular, compile-command and tabbing related variables based on the path of the file I'm editing. In my .vimrc I use the following to do this. autocmd BufRead,...
17
votes
4answers
4k views

Changing the compilation mode current directory automatically?

Currently, my compilation command is as follow: cd ~/somedir && ./somescript.sh This prevents emacs from finding the file in which an error happens (and opening it). Of course I can run M-x ...
8
votes
1answer
224 views

How can I detect compilation-mode is waiting for input

This often trips me up when building Linux kernels. I'll kick of a compile and after a while I realise it's not completed. What's usually happened is because the default config has changed it's ...

1
2