unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63031: x-list-fonts in config throws error on wayland
@ 2023-04-23 14:37 binarydigitz01 via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-04-23 14:44 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: binarydigitz01 via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-04-23 14:37 UTC (permalink / raw)
  To: 63031


[-- Attachment #1.1: Type: text/plain, Size: 4370 bytes --]


I am using x-list-fonts function in my config on emacs master branch. When I try starting the emacs daemon from the terminal as "emacs --daemon --debug-init" I get the following stack trace:


```
Debugger entered--Lisp error: (error "Window system is not in use or not initialized")
  x-list-fonts("ETBembo")
  (cond ((x-list-fonts "ETBembo") '(:font "ETBembo")))
  (let* ((variable-tuple (cond ((x-list-fonts "ETBembo") '(:font "ETBembo")))) (headline '(:weight bold))) (custom-theme-set-faces 'user (list 'org-level-8 (list (list t (append headline variable-tuple)))) (list 'org-level-7 (list (list t (append headline variable-tuple)))) (list 'org-level-6 (list (list t (append headline variable-tuple)))) (list 'org-level-5 (list (list t (append headline variable-tuple)))) (list 'org-level-4 (list (list t (append headline variable-tuple '(:height 1.1))))) (list 'org-level-3 (list (list t (append headline variable-tuple '(:height 1.25))))) (list 'org-level-2 (list (list t (append headline variable-tuple '(:height 1.5))))) (list 'org-level-1 (list (list t (append headline variable-tuple '(:height 1.75))))) (list 'org-document-title (list (list t (append headline variable-tuple '(:height 2.0 :underline nil)))))))
  load-with-code-conversion("/home/binarydigitz01/.config/emacs/binary-modules/..." "/home/binarydigitz01/.config/emacs/binary-modules/..." nil t)
  require(binary-org)
  load-with-code-conversion("/home/binarydigitz01/.config/emacs/init.el" "/home/binarydigitz01/.config/emacs/init.el" t t)
  load("/home/binarydigitz01/.config/emacs/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode -0x81766dbe61302eb>) #f(compiled-function () #<bytecode -0x12a6ce81a969aa6d>) t)
  command-line()
  normal-top-level()
Error: server did not start correctly
```

Important to note that when starting emacs normally, as "emacs" from the terminal, it starts fine.

System details:

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.37, cairo version 1.16.0)
Repository revision: 3badd2358d5f0af71887ee1cc9d39c2f312b6888
Repository branch: master
System Description: NixOS 23.05 (Stoat)

Configured using:
 'configure
 --prefix=/nix/store/3av06p6x2mbi2h0rsai5wpzs25cb8b17-emacs-pgtk-20230422.0
 --disable-build-details --with-modules --with-pgtk
 --with-native-compilation'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH: 

  value of $EMACSNATIVELOADPATH: /nix/store/x5f1gir0yp1pjd8hqlb7svfjldlf640k-emacs-packages-deps/share/emacs/native-lisp::
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Eshell

Minor modes in effect:
  eshell-prompt-mode: t
  eshell-pred-mode: t
  eshell-hist-mode: t
  eshell-cmpl-mode: t
  eshell-proc-mode: t
  eshell-arg-mode: t
  electric-pair-mode: t
  envrc-global-mode: t
  envrc-mode: t
  meow-global-mode: t
  meow-mode: t
  meow-insert-mode: t
  magit-todos-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  shell-dirtrack-mode: t
  global-diff-hl-mode: t
  global-corfu-mode: t
  corfu-mode: t
  marginalia-mode: t
  vertico-mode: t
  pixel-scroll-precision-mode: t
  global-hl-todo-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/binarydigitz01/.config/emacs/elpa/embark-consult-0.7/embark-org hides /home/binarydigitz01/.config/emacs/elpa/embark-0.21.1/embark-org
/nix/store/x5f1gir0yp1pjd8hqlb7svfjldlf640k-emacs-packages-deps/share/emacs/site-lisp/site-start hides /nix/store/3av06p6x2mbi2h0rsai5wpzs25cb8b17-emacs-pgtk-20230422.0/share/emacs/site-lisp/site-start
/home/binarydigitz01/.config/emacs/elpa/transient-0.3.7/transient hides /nix/store/3av06p6x2mbi2h0rsai5wpzs25cb8b17-emacs-pgtk-20230422.0/share/emacs/30.0.50/lisp/transient

[-- Attachment #1.2: publickey - binarydigitz01@proton.me - 0x7E7C02B2.asc --]
[-- Type: application/pgp-keys, Size: 665 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-23 18:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-23 14:37 bug#63031: x-list-fonts in config throws error on wayland binarydigitz01 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 14:44 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 15:02 ` binarydigitz01 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 15:20   ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 15:55 ` Eli Zaretskii
     [not found]   ` <1YOQm0f_WD_ShBPeWTxWfqowwL-OhWW7pbd4Epj5Wvj5X3Bpme27kYyJ9LIiiE3SlSZLR9WvL3QqVHd75EShMNB6kB1BUB2uf9t7-S_4lw0=@proton.me>
2023-04-23 18:24     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).