Skip to main content
Share Your Experience: Take the 2024 Developer Survey
46 votes
Accepted

Does emacs have an option to display build settings?

Take a look at the system-configuration-options variable. Here's an example, which is the result of running C-h v system-configuration-options system-configuration-options is a variable defined in `C ...
izkon's user avatar
  • 1,878
16 votes

OS X emacs: difference between X11 vs NS vs Cocoa?

There are a number of Emacs versions for macOS, including: The official Emacs on macOS is build using the "NS" port, also known as the "cocoa" port. As the name suggests, this port of Emacs ...
Lindydancer's user avatar
  • 6,170
11 votes

Is there an X11-free build of Emacs that can run on Wayland (not going through XWayland)

As of early 2021, the previously accepted answer is no longer the case. Emacs can now be ran in Wayland without XWayland. Core Emacs code has been (quite labouriously!) updated to use pure GTK, and ...
Colin Woodbury's user avatar
6 votes
Accepted

building emacs in a docker container

This question is also being answered here (since you already found my github bug report): https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23529 For the moment, and likely it will be this way until the ...
Silex's user avatar
  • 821
6 votes

Building emacs without certain packages/components

The vast bulk of Emacs libraries are not included in the emacs executable; so if you never use them, they are merely taking up a little space on the filesystem. With modern hard disk sizes, I think it'...
phils's user avatar
  • 51.6k
5 votes

Another way to install emacs on OS X using homebrew

Any Emacs can show you how it was configured at build-time. Inspect the value of system-configuration-options with Control+h v. A recent Emacs from https://emacsformacosx.com/ shows: system-...
nega's user avatar
  • 3,276
5 votes
Accepted

Installing Emacs from source: no 'configure' file

This line only applies to release tarballs (hence why it says "unpacked") which come with a configure script. For the git checkout you'll need to generate it with ./autogen.sh. Be sure to check out ...
wasamasa's user avatar
  • 22.2k
4 votes

Does emacs have an option to display build settings?

Dunno about a command-line switch, but: If you use library emacsbug+.el, which enhances standard library emacsbug.el, then you can use command ebp-insert-version with a prefix arg, to insert the ...
Drew's user avatar
  • 77.9k
4 votes
Accepted

How can I tell if emacs was built with X support?

I believe that if system-configuration-features includes X11 then Emacs was compiled with X support. That value is set in configure by the HAVE_X11 variable being true (look for: ...
phils's user avatar
  • 51.6k
4 votes

How do I build only the Emacs C source files and not the Elisp source files in the Emacs repository?

Running the default procedure: If you're in a checkout of the Emacs repository, as the OP title suggests, then there's a missing step there: the configure script is generated by the autogen.sh script,...
Basil's user avatar
  • 12.5k
3 votes
Accepted

Is there an X11-free build of Emacs that can run on Wayland (not going through XWayland)

There is no graphical Emacs build for Linux without X, no. As suggested in the commentary, you can use textual Emacs instead and customize the parts interacting with the clipboard to use wl-clipboard ...
wasamasa's user avatar
  • 22.2k
3 votes
Accepted

How to know the current configuration options of the running Emacs?

You can inspect the variable system-configuration-options with C-h v system-configuration-options system-configuration-options is a variable defined in `C source code'. Its value is "" ...
Manuel Uberti's user avatar
3 votes

Emacs 26.1 configure script doesn't like the gnutls version on a RedHat sytem

Try to install pkg-config. I met same trouble in Ubuntu 1804 on Windows Subsystem for Linux. I read configure script, and found the script uses pkg-config to check version of gnutls.
nodamotoki's user avatar
3 votes
Accepted

Building Emacs 25 on CentOS *without admin rights*

My solution was to create a virtual machine with Centos where I have admin rights, and compile emacs there. When building, I added a prefix to configure. That way make install put everything within a ...
Daniel's user avatar
  • 3,653
3 votes

Does emacs have an option to display build settings?

In addition to system-configuration-options which lists the options that were used for the invocation of configure when the emacs executable was built, there is also system-configuration-features ...
NickD's user avatar
  • 30.6k
3 votes

configure chooses the "wrong" libraries

TL;DR export PATH=/usr/bin:/bin I had a look at config.log to see where configure mentioned the paths used by the Anaconda distribution and I found 3 references to miniconda3 — 2 were related to the ...
gboffi's user avatar
  • 614
3 votes
Accepted

Building Emacs from source doesn't generate a native application on macOS Catalina

When using the flag --without-ns, that means do not build Emacs specifically for the MacOS platform. How about using --with-ns instead, or no flag at all? The build script should automatically build ...
lawlist's user avatar
  • 19.2k
2 votes
Accepted

How to programmatically extract path to etags executable

The variable invocation-directory contains the directory in which the Emacs executable was found, so you can use (file-truename (expand-file-name "bin/etags" invocation-directory)) See also the ...
matteol's user avatar
  • 2,038
2 votes

How to build Emacs for an embedded ARM Linux system

First: do you need to run Emacs on that system? Emacs can access remote files easily. Typically you just run it on your local machine. If you only ever access the system remotely, it probably doesn't ...
Gilles 'SO- stop being evil''s user avatar
2 votes
Accepted

Installing Emacs from source: the command `C-h v` for accessing variables doesn't work

make is a program often used to automate life-cycle of another program. Compiling, testing, packaging and installing would be examples of events in a program's life-cycle managed by make. Usually, it ...
wvxvw's user avatar
  • 11.4k
2 votes
Accepted

Cannot open JPEG files in new emacs build

Complile without cairo. Worked for me.
user17826's user avatar
2 votes
Accepted

configure chooses the "wrong" libraries

Emacs uses the "libpng-config" tool to locate PNG include files and libraries. So yes, if you have multiple versions installed you need to adjust PATH so that the one you want to be used, is. For ...
naif1's user avatar
  • 46
2 votes

Building on macOS with a prefix

On macOS, Emacs builds itself a self-contained application bundle by default. You can find it in the build tree via the output at the end of the ./configure step. You must run "make install" in order ...
nega's user avatar
  • 3,276
2 votes
Accepted

installing emacs 26.3

This also happened to me with emacs version 29.0.50. You can use checkinstall by the following: mkdir build && cd build ../configure --without-compress-install make checkinstall -D --...
Andrew Smart's user avatar
2 votes
Accepted

What is the difference between pdump and pbootstrap?

Have a look at the Elisp Reference Manual which has a helpful section on "Building Emacs" in appendix E1: https://www.gnu.org/software/emacs/manual/html_node/elisp/Building-Emacs.html. There ...
Fran Burstall's user avatar
2 votes
Accepted

Correct gtk3 version build emacs 29.2 from source with gtk3 and xwidgets support

Your question is confusing, but probably mostly because you are confused, or are confusing different things with each other. The warning you mention (“WARNING: Your version of Gtk+ will have problems…”...
db48x's user avatar
  • 18.3k
1 vote

installing emacs 26.3

You missed a step, after you run the make command, you need to run make install prefix=/replace/with/destination/path. You also do not need to use sudo during the make command, but you may have to use ...
preetpalS's user avatar
1 vote

Another way to install emacs on OS X using homebrew

You may install emacs-plus from this: From that link: Note that by default emacs-plus builds the Cocoa version of Emacs with gnutls, imagemagick, librsvg and dynamic modules support by default.
Ian's user avatar
  • 1,483
1 vote
Accepted

Emacs 26 build on RHEL6 has blank window frame

Emacs 26 by default switches on double buffering for X servers when it finds the Xdbe header on the build machine. (See Emacs 26 release notes at the GitHub mirror.) Some X servers like MobaXTerm don’...
halloleo's user avatar
  • 1,345

Only top scored, non community-wiki answers of a minimum length are eligible