From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: binarydigitz01 <binarydigitz01@proton.me>
Cc: 63031@debbugs.gnu.org
Subject: bug#63031: x-list-fonts in config throws error on wayland
Date: Sun, 23 Apr 2023 22:44:21 +0800 [thread overview]
Message-ID: <sdvr0sapshj.fsf@netyu.xyz> (raw)
In-Reply-To: <wJq0fZS-Gk3-XEGQ_1FnffRcq92yuhJqOej_1vtGFqLTgL6a7rEoLeyHeyuU6xRgT6BMasCFcQDh8M36JOeZkDzMFJ7ETnFE2i6HcV8o9f8=@proton.me>
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.]
next prev parent reply other threads:[~2023-04-23 14:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sdvr0sapshj.fsf@netyu.xyz \
--to=bug-gnu-emacs@gnu.org \
--cc=63031@debbugs.gnu.org \
--cc=binarydigitz01@proton.me \
--cc=ruijie@netyu.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).