Questions tagged [compilation]

Running compilers, and more generally building software from within Emacs.

This tag is about invoking compilers and other software build tools from within Emacs. For questions about compiling Emacs itself, see .

97 questions
13
votes
3 answers

emphasise the current error in the *compilation* window

When running the compile command and jumping to the 'next error', emacs identifies the line of the current error by placing a little black triangle, pointing right, in the left-hand fringe of the *compilation* buffer. This is nice, but my old eyes…
Spacemoose
  • 897
  • 1
  • 8
  • 18
3
votes
1 answer

Emacs for Windows: How to M-x compile using MinGW_32

I have been using Console2 on an MS Windows box to compile and would like to use Emacs instead. My settings on Console2 are as follows: shell="c:/mingw/bin/sh.exe --login -i -c 'cd /c/docume~1/admini~1/desktop/;export…
lawlist
  • 19,106
  • 5
  • 38
  • 120
1
vote
3 answers

Change Default Compiler Within Emacs?

I asked this question originally on StackOverflow. I use M-x compile within Emacs to compile my C code which then initiates make -k and allows me to compile the code. I wish to use Clang (or conceivably GCC 4.8 after I install it) as the default…
haziz
  • 121
  • 4
1
vote
3 answers

Why are there four identical executables generated while compiling from source?

The result of compiling emacs from source on Linux Mint 21 Cinnamon Edition was creation of FOUR identical executable files in the [src] directory: 1e2bec8a4a3c5c671fadd486d0590393 bootstrap-emacs 1e2bec8a4a3c5c671fadd486d0590393 …
Claudio
  • 450
  • 3
  • 12
1
vote
1 answer

Quick optional alternative to "M-x compile"

I'm using "M-x compile" several times a day with the following in my ~/.emacs: (setq compile-command "cd ~/my-dev/linux_build/ && killall gdb ; ~/my-dev/someStuff/.git/hooks/pre-commit; mv -f ../bin/my-exe /tmp 2>&1; echo ---; make -j$(nproc)…
Okay Dokey
  • 13
  • 4
1
vote
1 answer

Compiled Emacs Needs Terminfo

When installing emacs completely from source to a custom prefix (no root), even after the compilation works, it says emacs: Cannot open terminfo database file . Adding the terminfo to different parts of the PATH/other environment variables doesn't…
JZL003
  • 121
  • 4
1
vote
1 answer

Another level of "next/previous" in the compilation buffer?

I use Emacs with Cucumber (cucumber.io). Cucumber outputs lines like this: Scenario: Jeff returns a faulty microwave # /somepath/file1.feature:12 Given Jeff has bought a microwave for $100 # /somepath/steps/file2.rb:5 …
AnoE
  • 408
  • 2
  • 12
1
vote
2 answers

Using compilation-mode to parse error stacks, relocating them

I run several applications, in several languages, that store their error stacks locally. I made a small emacs mode that allows me to browse those errors and navigate the related code. The code I wrote, at its core, is basically loading those…
juanleon
  • 163
  • 6
0
votes
1 answer

How generate *Compile log* buffer?

I switched to Emacs 29.1 from Emacs 26. The first time I opened Emacs I got: ⛔ Warning (comp): json-snatcher.el:81:2: Warning: defvar `jsons-parsed-regions' docstring wider than 80 characters ⛔ Warning (comp): json-snatcher.el:208:2: Warning:…
Gabriele
  • 1,554
  • 9
  • 21
0
votes
2 answers

M-x compile, Compilation Command Variable

When M-x compile and specifying a compilation command, where is this command stored? I'd like to use whatever it's stored to, in a function to quickly compile, instead of being prompted for the compile command. (defun my-build () "" (interactive) …
Jason Hunter
  • 709
  • 4
  • 10
0
votes
1 answer

With incremental compilation and changed files `compilation-goto-error` moves to wrong line

I work on a typescript project that I compile with webpack serve, using projectile-run-project. My *compilation buffer shows the webpack output, which includes typescript errors. After some webpack hacking, I managed to get the errors into a…
fbuether
  • 1
  • 1
0
votes
1 answer

elm-mode can't compile file

When creating projects with elm init, elm creates a project structure where there is a elm.json in the root of the project directory and a src folder, where your .elm files should go Elm-mode for emacs doesn't seem to support this. When visiting a…
flooose
  • 521
  • 6
  • 15
0
votes
0 answers

Always remember last compile-command?

How do I get Emacs to always remember the last compile-command? My compile-command (cc) in Emacs 24 settings is pure vanilla, no bells and whistles. I only changed the cc string itself ("python build.py"), and I sometimes type a different cc by hand…
BBSysDyn
  • 101
  • 1