Upon initialization, Emacs now ignores settings in my ~/.emacs file, even when the config file is reduced to a minimum, e.g., (custom-set-variables '(tool-bar-mode nil)) It also gives the following error and warning upon startup: require: Symbol’s value as variable is void: font-lock-reference-face Package cl is deprecated It seems that the installed /etc/emacs/site-start.el loads the site-gentoo, which in turn references font-lock-reference-face, so perhaps the problem is with the site-gentoo. Reproducible: Always ~> emerge --info Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r3, 6.1.53-gentoo-r1 x86_64) ================================================================= System uname: Linux-6.1.53-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-glibc2.37 KiB Mem: 32576400 total, 20016400 free KiB Swap: 67108860 total, 67108860 free Timestamp of repository gentoo: Tue, 03 Oct 2023 00:45:01 +0000 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.5::gentoo dev-lang/rust-bin: 1.71.1::gentoo dev-util/cmake: 3.26.5-r2::gentoo dev-util/meson: 1.2.1-r1::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.37::gentoo sys-devel/autoconf: 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo sys-devel/gcc: 13.2.1_p20230826::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/llvm: 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo sys-libs/libselinux: 3.5-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: webrsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-webrsync-verify-signature: no ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx2 -O2 -ggdb -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core-avx2 -O2 -ggdb -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="en cs es" MAKEOPTS="-j5" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emacs encode exif flac foomaticdb fortran gdbm gif gpm gtk gui iconv icu imagemagick jpeg latex lcms libnotify libtirpc lock mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pic png policykit ppds pulseaudio qt5 readline sasl sdl seccomp sound spell split-usr ssl startup-notification svg test-rust thunar tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xscreensaver xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" L10N="en cs es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS =========== equery uses emacs output (29.1-r1 is installed): [I] app-editors/emacs Available versions: (18) 18.59-r15 (25) 25.3-r18 (26) 26.3-r15 (27) 27.2-r13^t (28) 28.2-r9 (29) 29.1-r1 ~29.1-r4 (29-vcs) **29.1.9999*l (30-vcs) **30.0.9999*l {+X Xaw3d acl alsa aqua athena cairo dbus dynamic-loading games gfile gif +gmp gpm gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jit jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux small-ja-dic sound source sqlite ssl svg systemd +threads tiff toolkit-scroll-bars tree-sitter valgrind webp wide-int xattr xft +xpm xwidgets zlib ABI_X86="x32"} Installed versions: 29.1-r1(29)(05:48:59 PM 10/03/2023)(X acl alsa cairo dbus gif gmp gpm gtk gui imagemagick inotify jpeg lcms png sound ssl svg threads tiff xft xpm zlib -Xaw3d -aqua -athena -dynamic-loading -games -gfile -gsettings -gzip-el -harfbuzz -jit -json -kerberos -libxml2 -livecd -m17n-lib -mailutils -motif -selinux -source -sqlite -systemd -toolkit-scroll-bars -tree-sitter -valgrind -webp -wide-int -xwidgets)
Try if running emacs-updater (from app-admin/emacs-updater) fixes the problem. If it doesn't, please attach /usr/share/emacs/site-lisp/site-gentoo.el here.
Also, is your .emacs still ignored when you start Emacs with "emacs --no-site-file --no-site-lisp"?
> If it doesn't, please attach /usr/share/emacs/site-lisp/site-gentoo.el here. This would help a lot. Also: eix -c -C app-emacs
(In reply to Maciej Barć from comment #3) > > If it doesn't, please attach /usr/share/emacs/site-lisp/site-gentoo.el here. > > This would help a lot. Also: > eix -c -C app-emacs Oops, with -I of course: eix -I -c -C app-emacs
I have the same problem here, but have not the suggested emacs-updater so far. Emacs 29.1 does not read my .emacs file nor does it open files from the command line. It starts emacs, but one has to open files from inside emacs. Also I could only work with the command line version, starting emacs -nw. The gui did not interpret keystrokes correctly. Ctrl was interpreted as Ctrl-Super, which made it unable to run C-f to open a file etc. I also had problems getting the emacs --daemon to run, but which runs if launched from inside emacs by evaluating (emacs-server) Not having been able to resolve this lot of problems for now i am back to emacs 28.2. As described before i also got the error message: require: Symbol’s value as variable is void: font-lock-reference-face I might try the emacs updater during the weekend. Would be nice if updating would be smooth as it was for prior versions.
(In reply to Thomas Haschka from comment #5) > I might try the emacs updater during the weekend. > Would be nice if updating would be smooth as it was for prior versions. We can only do that if people both report bugs and work with us when we suggest things, so we can fix problems. I've had no problems on any of my machines, and Gentoo is a broad church, so there can be configurations we have no idea exist sometimes that break.
Man, I will do that on the weekend. I am sorry, I have work to do, and my work is done at 95% in Emacs, so I can not afford running a potential broken emacs, that I tried to fix for 2 hours, before the weekend, nor rebuild all packages with emacs-updater, which will potentially brake a lot of things. I gave you the hint that I seemingly have the same problem as the other guy, now please be happy with that for the moment being. cheers,
That's fine, I'm just explaining why comments about what "would be nice" don't really help with anything.
Created attachment 872144 [details] The site-gentoo.el file Running the updater was the first thing I tried, with no improvement of the problem. I am attaching the site-gentoo.el as requested.
(In reply to Ulrich Müller from comment #2) > Also, is your .emacs still ignored when you start Emacs with "emacs > --no-site-file --no-site-lisp"? This does at least some of the things specified in my ~/.emacs but gives a different error: Warning (initialization): An error occurred while loading ‘/home/hrabe/.emacs’: File is missing: Cannot open load file, No such file or directory, site-gentoo My .emacs specifies (for a few years now) this: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(inhibit-startup-screen t) '(scroll-bar-mode (quote right)) '(tool-bar-mode nil nil (tool-bar))) (set-frame-size (selected-frame) 100 59) (add-hook 'text-mode-hook 'turn-on-auto-fill) (require 'site-gentoo) (autoload 'octave-mode "octave" nil t) (setq auto-mode-alist (cons '("\\.m$" . octave-mode) auto-mode-alist)) (add-hook 'go-mode-hook (lambda () (setq-default) (setq tab-width 4) (setq standard-indent 4)) ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )
(In reply to Maciej Barć from comment #4) > (In reply to Maciej Barć from comment #3) > > > If it doesn't, please attach /usr/share/emacs/site-lisp/site-gentoo.el here. > > > > This would help a lot. Also: > > eix -c -C app-emacs > > Oops, with -I of course: > eix -I -c -C app-emacs # eix -I -c -C app-emacs [I] app-emacs/auctex (13.2@10/04/2023): Extensible package for writing and formatting TeX files in Emacs [I] app-emacs/autoconf-mode (2.71@10/04/2023): Emacs major modes for editing autoconf and autotest input [I] app-emacs/emacs-common (1.9@09/26/2023): Common files needed by all GNU Emacs versions [I] app-emacs/eselect-mode (1.4.26@10/04/2023): Emacs major mode for editing eselect files [I] app-emacs/ess (18.10.2-r1@10/04/2023): Emacs Speaks Statistics [I] app-emacs/gnuplot-mode (0.8.1@10/04/2023): Gnuplot mode for Emacs [I] app-emacs/go-mode (1.6.0@10/04/2023): An improved Go mode for emacs [I] app-emacs/po-mode (0.22@10/04/2023): Major mode for GNU gettext PO files Found 8 matches
Please test if the problem still exist when you uninstall app-emacs/ess.
(In reply to Ulrich Müller from comment #12) > Please test if the problem still exist when you uninstall app-emacs/ess. After unmerging the ess, the problem seems to have disappear, although I tested it only briefly.
I can confirm that unmerging app-emacs/ess solved the problem for me. Further emacs-29 does not work with Xmodmap. Using setxkbmap instead solved my problems with the Ctrl/Meta/Super key not working even though settings in .Xmodmap were unrelated to these.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6457a77c02ec1246577c9d93597b6272266ba52e commit 6457a77c02ec1246577c9d93597b6272266ba52e Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-10-05 07:03:30 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-10-05 07:20:29 +0000 app-emacs/ess: Replace references to font-lock-reference-face Variable font-lock-reference-face was renamed to font-lock-constant-face and is obsolete since 1998 (Emacs 20.3): https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8acf2292d9a7f7fc0f326a6186423d087f5a7f30 The alias was finally removed in 2022 (Emacs 29.1): https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=107f832577123ea7ebe867cba55601d0142f546f Closes: https://bugs.gentoo.org/915145 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-emacs/ess/{ess-18.10.2-r1.ebuild => ess-18.10.2-r2.ebuild} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Thanks for reporting.
I've also replaced (require 'ess-site) in the site-init file by (load "ess-autoloads" nil t) in a followup commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30a319f7c035921fddf34049ae2ac06b5d062d0e commit 30a319f7c035921fddf34049ae2ac06b5d062d0e Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: Thu Oct 5 09:42:14 2023 +0200 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: Thu Oct 5 09:44:02 2023 +0200 app-emacs/ess: Load ess-autoloads instead of ess-site Update ebuild to EAPI 8. Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-emacs/ess/ess-18.10.2-r3.ebuild | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+)