Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I make emacs 28 support wayland?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sun May 15, 2022 6:08 am    Post subject: How can I make emacs 28 support wayland? Reply with quote

I keep seeing

Code:
(emacs:4548): Gtk-WARNING **: 06:07:51.136: cannot open display: :0


when I try to execute emacs with GDK_BACKEND=wayland.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun May 15, 2022 9:34 am    Post subject: Reply with quote

You cant.
Use instead
Code:

echo "app-editors/emacs *  *" >> /etc/portage/package.accept_keywords
USE="-X gtk gui" emerge app-editors/emacs:29-vcs

It is the only one that contains "pgtk" references in the ebuild, apparently needed for wayland.
Code:

elif use gtk && ! use X; then
      einfo "Configuring to build with pure GTK (without X11) support"
      myconf+=" --with-pgtk --without-x --without-ns"
      myconf+=" --with-toolkit-scroll-bars" #836392
      myconf+=" --without-gconf"
      myconf+=" $(use_with gsettings)"
      myconf+=" $(use_with harfbuzz)"
      myconf+=" $(use_with m17n-lib libotf)"
      myconf+=" $(use_with m17n-lib m17n-flt)"
      myconf+=" $(use_with xwidgets)"

_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum