2022 Developer Survey is open! Take survey.

Questions tagged [compile-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
73 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. ...
user avatar
1 vote
1 answer
53 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 ...
user avatar
  • 13
1 vote
1 answer
59 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 ...
user avatar
  • 13
0 votes
0 answers
90 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-...
user avatar
  • 123
0 votes
1 answer
62 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\...
user avatar
0 votes
0 answers
177 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) ...
user avatar
  • 275
0 votes
1 answer
207 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 '...
user avatar
  • 275
1 vote
1 answer
250 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 ...
user avatar
  • 288
0 votes
1 answer
110 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 ...
user avatar
4 votes
1 answer
471 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 ...
user avatar
1 vote
0 answers
70 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 ...
user avatar
  • 1,775
6 votes
1 answer
196 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, ...
user avatar
  • 707
6 votes
2 answers
16k 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'...
user avatar
  • 193
3 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
257 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/...
user avatar
  • 211
0 votes
1 answer
855 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 ...
user avatar
1 vote
2 answers
57 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 ...
user avatar
1 vote
1 answer
225 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 /...
user avatar
1 vote
1 answer
58 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 ...
user avatar
  • 345
5 votes
0 answers
237 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 ...
user avatar
  • 305
3 votes
1 answer
534 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 ...
user avatar
2 votes
1 answer
611 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 "^\"\\(.*\\)\",...
user avatar
1 vote
0 answers
22 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 ...
user avatar
  • 111
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-...
user avatar