Questions tagged [compile-mode]
The compile-mode tag has no usage guidance.
21
questions
0
votes
0answers
68 views
How can I provide the first-error and next-error initial positions as region selection in order to save to the kill-ring?
I am running a make command. I'd like to capture the first error and output it to a file.
How can I select as a region from the beginning of first-error position to the position right before the next-...
0
votes
1answer
38 views
Compile output re-write
I'm working with an old compiler that puts out error lines like this:
./code\driver.c(327): WARNING C4200: Other...
I need to fix a couple things:
Fix the path from Wine/DOS mode to local: ./code\...
0
votes
0answers
105 views
Send command to run in eshell, after compiled
So I've been mapping my M-x compile like this, according to c-mode-hook or c++-mode-hook:
(add-hook 'c++-mode-hook
(lambda ()
(set (make-local-variable 'compile-command)
...
0
votes
1answer
114 views
M-x compile fortran
I set up M-x compile to automatically run appropriate commands depend on on the file types. For example, for C++
(add-hook 'c++-mode-hook
(lambda ()
(set (make-local-variable '...
1
vote
1answer
178 views
Why can't Emacs find gfortran on my Mac?
I have tried to compile a simple helloworld.f95 on my Mac, using emacs.
The root of emacs was set in the directory containing helloworld.f95.
I used the following commands
M-x compile
gfortran -o ...
0
votes
1answer
88 views
Cannot jump to file or location link in grep-mode or compile-mode
I have recently installed emacs on a new system (Manjaro arch-linux), using my usual configuration (available here, if relevant).
However, the jump function never works on this new system: whenever ...
2
votes
1answer
266 views
Automatically scroll *compilation* window, beside source-buffer window
I edit C in two windows side-by-side, source on left, compilation results on right. I have F5 bound to recompile.
Currently I have to do:
F5 to run make,
Move to *compilation* buffer in right ...
1
vote
0answers
61 views
Syntax highlight strings in compilation-mode
Is it possible to activate syntax highlighting for strings in compilation mode?
Sometimes the compilation error output of some C++ linter is quite unreadable. Lengthy types and function definitions ...
6
votes
1answer
150 views
Automatically don't save buffers before compiling
I often have buffers from unrelated projects open. Before compiling I use projectile-save-project-buffers to save all relevant buffers. If other buffers happen to contain unsaved modifications, ...
5
votes
2answers
14k views
How to compile and run a C++ file? [closed]
I don't know how to compile and run a C++ file in GNU Emacs. I searched on the various sites and stackexchange network, but from them what I understood was write something like make compile, and I don'...
2
votes
1answer
827 views
How do you abort an emacs M-x compile compilation
How do you abort an emacs M-x compile compilation?
I'm editing a bash file, and I "test execute it" by doing
M-x compile.
What I tried - googled:emacs abort compilation
The file I'm working on is ...
1
vote
1answer
245 views
Emacs Compile Mode: Extra characters before filename result in bad match
In the compile buffer of Emacs 25.3.1, I am getting the following compilation error using Clang (the error message is given as it appears in the compile buffer line by line) :
src/platform/linux/...
0
votes
1answer
674 views
compilation-scroll-output doesn't work if *compilation* buffer is created by hand
Emacs version 25
I have a short piece of elisp to create a few buffers and split my frame into multiple windows that are displayed the way I like. This code creates a *compilation* buffer and ...
1
vote
2answers
51 views
How can I search for a string recursively under the current directory?
(Note: this will be a wiki-like question in that I already figured out the answer. I'm posting it here on the hope it might be useful to others...)
How do I search for a string recursively under the ...
0
votes
1answer
196 views
Compile remote project fails with “no such file or directory”
I'm trying to compile a remote project using M-x compile. I have the remote project directory open in a remote Dired buffer. M-x compile results in the following command:
Compile command: make -C
/...
1
vote
1answer
52 views
Paths not hyperlinking correctly
Recently when running compile, the error messages don't get hyperlinked properly. I get this type of error message:
../build/obj/DerivedClass.cpp:45:18: error: expected type-specifier
The buffer ...
5
votes
0answers
217 views
How to make eshell recognize path to files and make it clickable?
In the compilation environment in emacs (M-x compile), whenever there is a path to file (ex.: ../src/code.cpp:21:3: warning: comparison between...) it highlights the path and make it clickable. When ...
3
votes
1answer
396 views
Fix compilation mode paths when compiling in container or remotely
Recently the scenario of editing project source code locally but building the project remotely on another machine (for example inside a Docker container or an Amazon Web Services host) is becoming ...
2
votes
1answer
535 views
help with regexp for compilation-mode (IAR EWARM )
I was wondering if anyone could help me figure out why the compilation-error-regexp for IAR ( compilation-error-regexp-alist-alist, in compile.el ) does not work?
The regexp is:
(iar
"^\"\\(.*\\)\",...
1
vote
0answers
20 views
Detect a region in markdown and run a compilation
It would be really useful if emacs could detect the cursor is currently inside a code-block in my markdown-file and compiles the fragment automatically.
I am editing a large markdown file with a lot ...
7
votes
1answer
1k views
ANSI escape sequences in compilation-mode
When you run various "modern" compilation or test tools you get ANSI codes in the output. I'd like to either render them correctly (ideally) or otherwise strip them. I've tried applying either term-...