Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [compile-mode]

The tag has no usage guidance.

1
vote
0answers
22 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 ...
0
votes
0answers
46 views

In Emacs, how to compile with FreeFem++?

I am using Emacs to write FreeFem++ code. How can I compile the code? (FreeFem++ is a free mathematical software to solve partial differential equations with element method: http://www.freefem.org/)
5
votes
1answer
74 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, ...
1
vote
2answers
3k 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'...
1
vote
1answer
125 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
128 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
257 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
44 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
82 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
40 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 ...
0
votes
0answers
70 views

Is there a way to Run C or Haskell and see the result in Buffer *Message* itself without opening a shell to Run it?

I am new to Emacs and struggling to learn it. Is there a way to Run C or Haskell program in Emacs Buffer *Message * area itself, instead of opening a shell to run it, like C-h e in Emacs-Lisp?
4
votes
0answers
154 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 ...
1
vote
1answer
126 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
313 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
18 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 ...
2
votes
1answer
344 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-...