bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63031: x-list-fonts in config throws error on wayland


From: Ruijie Yu
Subject: bug#63031: x-list-fonts in config throws error on wayland
Date: Sun, 23 Apr 2023 22:44:21 +0800
User-agent: mu4e 1.9.22; emacs 30.0.50

binarydigitz01 via "Bug reports for GNU Emacs, the Swiss army knife of text 
editors" <bug-gnu-emacs@gnu.org> writes:

> [[PGP Signed Part:Undecided]]
>
> 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.

Just to confirm, what works is running "emacs" from terminal, and what
doesn't work is "emacs --daemon --debug-init", correct?

Can you try "emacs --fg-daemon --debug-init" and see if that makes a
difference?

> 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
>
> [2. application/pgp-keys; publickey - binarydigitz01@proton.me - 
> 0x7E7C02B2.asc]...
>
> [[End of PGP Signed Part]]


-- 
Best,


RY

[Please note that this mail might go to spam due to some
misconfiguration in my mail server -- still investigating.]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]