this post was submitted on 05 Aug 2023
4 points (100.0% liked)
Emacs
2226 readers
5 users here now
Our infinitely powerful editor.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That looks as if you are running a pre-dump Emacs executable.
One step of the Emacs build process is to load up the elisp files that are required for a basic Emacs session and dump an image with these files pre-loaded. This is speeds up the startup process. The Emacs executable that is used for this pre-loading is normally called
temacs
. You don't normally run this executable, it's only used during the build process. The message you posted looks as if theemacs
command is running thistemacs
executable rather than the normal post-dump one.I'd try to make sure that this
emacs
executable you are running is actually the one from the current Emacs installation and not some old binary (perhaps executed through an alias or symlink?).I started by checking
emacs --version
and confirming that it reported 29.1. The file atwhich emacs
(/usr/bin/emacs
) is not a symlink, it's a bash script that was ultimately runningemacs-gtk
, which is a binary in the same directory.If I run emacs-gtk directly, things appear to work, but I get this warning:
This appears to be related to screen reader support. My repos do have packages for at-spi, but I don't reckon that hiding a warning I might see once per reboot is a strong enough reason to install it.
If I run
emacs-x11
directly, things seem to work, though if I turn on menu-bar-mode or check the menu with F10 it looks awful.If I set and export EMACS_TOOLKIT to x11 and run the bash script, it seems to take longer to load and spams hundreds of lines in the shell as it announces that it's loading things. I'm not that bothered by long loading times as I'm seldom restarting, but I don't know why it's so spammy when I start it through the script.
I'd like to better understand what's going on. For now, I think I have a working setup again if I just skip the script and run emacs-gtk directly, but I'm sure there's something wrong with my setup, and I hate not knowing things. I'll include the bash script in a reply to myself here.
According to the other thread and a Mastodon post the package is broken.
As a side note for me Emacs is just too important to leave to the distribution, I always build my own.
Yeah... I may have to do the same. I had plans this weekend that this slowed down. Thanks for your help. I hadn't seen the other thread or the mastodon post.