Questions tagged [compile-mode]
The compile-mode tag has no usage guidance.
28
questions
0
votes
0
answers
14
views
Add safety checks to fastest recompile command in the west
In my .emacs file, I have my dream recompile function,
(require 'compile)
(defun jidanni-recompile ()
(interactive)(recompile 'nil))
(global-set-key "\C-xc" 'jidanni-recompile)
It's "...
1
vote
0
answers
39
views
Customize compilation mode for a new language
I am trying to add a language called lesim to compilation mode so that errors are parsed correctly. The error line does not include the file name. Among the ways I have tried to get around this, what ...
0
votes
1
answer
88
views
How can I control in which window are open the errors in a compile buffer?
Summary: How can I control in which window are open the error links in a compile buffer? That is, if I have already 2 windows, I want that the error jumps to the other open window and reuses it for ...
1
vote
2
answers
148
views
Send to python-shell-interpreter from the project root
How can I tell the shell to always open relative to my project root?
I have the following python project structure:
mypyjunk
├── mypyjunk
│ ├── common.py
│ ├── __init__.py
│ └── jitter.py
├── ...
2
votes
1
answer
99
views
How to disable ggtags' *ggtags-global* buffer scrolling?
when I do next-error, the *ggtags-global* buffer scrolls down one line.
I hope that the *ggtags-global* buffer doesn't scroll, whether it's executing next-error, previous-error, or compile-goto-error.
...
1
vote
1
answer
99
views
make compile-goto-error use view-mode when visiting source buffer
After using M-x find-grep I have a list of files with position information in a compile buffer. Now I want to visit the files to check, which can be done with <RET>, calling compile-goto-error ...
1
vote
1
answer
77
views
File-specific TeX compiling options?
I have TeX files that Aquamacs compiles by default with pdflatex and other files compiled by default with latex (so I get a dvi).
If I make a copy of file that Aquamacs compiles with latex, that copy ...
0
votes
0
answers
95
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
1
answer
113
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
0
answers
233
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
1
answer
245
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
1
answer
269
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
1
answer
161
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 ...
5
votes
1
answer
782
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
0
answers
91
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
1
answer
240
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, ...
6
votes
2
answers
18k
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'...
3
votes
1
answer
2k
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
1
answer
281
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
1
answer
961
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
2
answers
85
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 ...
1
vote
1
answer
256
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
1
answer
59
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 ...
6
votes
0
answers
265
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
1
answer
774
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
1
answer
690
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
0
answers
31
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
1
answer
2k
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-...