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 .

94 questions
56
votes
9 answers

Using Emacs as a full-featured C/C++ IDE

I have been trying off and on for over a year now to use Emacs as a C/C++ IDE. I have only been marginally successful thus far, but have run into a few brick walls along the way. Currently I am trying to use CEDET, but I am having a rough time…
nispio
  • 8,175
  • 2
  • 35
  • 73
26
votes
5 answers

Hide *compilation* window

It is annoying to see the compilation window appear when it is successful. How to remove that automatically? I want to see it though if it is not successful.
Husain
  • 485
  • 8
  • 12
18
votes
5 answers

Compile emacs from feature/native-comp (gccemacs) branch on Ubuntu

I want to compile the gccemacs branch of Emacs. When I run ./configure, the configure script errors with: cd emacs git checkout feature/native-comp ./autogen.sh ./configure --with-nativecomp configure: error: Installed libgccjit has failed…
Joe
  • 1,312
  • 1
  • 8
  • 19
12
votes
3 answers

Recursively go up to find Makefile and compile

The problem with M-x compile is that if the Makefile isn't in the current directory, it fails. I'd like to have a function that recursively goes up to find a Makefile and run make from this directory. I've seen this question, but it's path-specific,…
12
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
  • 877
  • 1
  • 7
  • 18
12
votes
2 answers

How do I declare a variable ignorable?

How do I avoid byte-compiler warnings Unused lexical variable in functions defined using macros expanding to defun? E.g., macro defun-rcirc-command in rcirc.el uses the target variable which is not used by several invocations. In Common Lisp I can…
sds
  • 5,928
  • 20
  • 39
9
votes
3 answers

Where to find missing dependencies (imagemagick and m17n)

I am compiling Emacs from source and can't figure out what libraries I need to enable imagemagick and m17n. I have imagemagick and libm17n-dev installed (I am on Debian). My ./configure script says: Does Emacs use imagemagick? …
Łukasz Gruner
  • 1,008
  • 8
  • 16
9
votes
3 answers

Persistent environment for M-x compile

When I run M-x compile it spawns a new subshell to execute my compile command. As soon as the compile command returns, the shell process is killed. I can see why this would be desirable in most cases, but I am currently in a situation where it is…
nispio
  • 8,175
  • 2
  • 35
  • 73
9
votes
1 answer

Jumping to the first error -- not warning -- when compiling

The compilation-auto-jump-to-first-error option should make Emacs jump to the first error during compilation. However, it seems that Emacs treats warnings and errors in the same way, and jumps to the first one of either. How would you make Emacs…
Eleno
  • 1,428
  • 11
  • 17
8
votes
3 answers

How can I customize the compile command?

In one of my projects I need to run make package install when building instead of make. It remembers the last compile command I used, but resets to make -k every time emacs starts up. How can I customize M-x compile to default to make package…
Connor
  • 1,591
  • 1
  • 19
  • 26
8
votes
1 answer

What Emacs feature is nearest to Vim's quickfix?

The common use of Vim's quickfix is to hand off compilation of code to a command specified by the suggestively named makeprg variable and then interpret the errors printed by that command so you can quickly jump to the file, row, and column location…
Praxeolitic
  • 387
  • 2
  • 9
7
votes
2 answers

How can I pin the *compilation* buffer to never leave a single frame/window

I would prefer to have the *compilation* buffer always stay in its own frame. However, currently if I run M-x compile from another frame/window, the buffer pops up in a new window there as well. How can I cause emacs to instead only raise the…
ajp
  • 393
  • 1
  • 9
6
votes
1 answer

Close latex compilation window when successful

I like having TeX-show-compilation in LaTeX for large documents. However, if the compilation completed successfully, I would like the windows to be reverted or the compilation buffer to be killed. I have tried following the suggestions given in:…
Shaun
  • 63
  • 4
6
votes
1 answer

What are the advantages of building Emacs from source?

I use precompiled Emacs binaries (24.3) right now. AFAIK, v24.4 is already available as binaries, so there is no incentive for me to compile Emacs myself to stay current. I'm thinking, however, whether there are not other advantages of building…
mbork
  • 1,647
  • 1
  • 13
  • 23
6
votes
2 answers

Press F5 to save, compile, and run current rust file

Similar to Visual Studio, when working with Rust programs, I'd like to press F5 to save the current file, compile it, and run it. What's a good way to do this?
dharmatech
  • 1,212
  • 7
  • 19
1
2 3 4 5 6 7