LWN: Comments on "Wayland support (and more) for Emacs" https://lwn.net/Articles/843896/ This is a special feed containing comments posted to the individual LWN article titled "Wayland support (and more) for Emacs". en-us Fri, 29 Aug 2025 19:18:54 +0000 Fri, 29 Aug 2025 19:18:54 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Wayland support (and more) for Emacs https://lwn.net/Articles/863636/ https://lwn.net/Articles/863636/ ocrete <div class="FormattedComment"> It&#x27;s really saved Emacs for me too using fractional scaling on my nice 4K display.<br> <p> A huge thanks to the developers who did all the hard work.<br> </div> Tue, 20 Jul 2021 16:56:21 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/846912/ https://lwn.net/Articles/846912/ Hi-Angel <div class="FormattedComment"> I&#x27;m kinda confused… Isn&#x27;t there such list in lsp-mode&#x27;s website https://emacs-lsp.github.io/lsp-mode/page/languages/<br> </div> Sat, 20 Feb 2021 21:39:06 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/845900/ https://lwn.net/Articles/845900/ pclouds <div class="FormattedComment"> The problem with closing display is still there, but tracked elsewhere in <a rel="nofollow" href="https://gitlab.gnome.org/GNOME/gtk/-/issues/2315">https://gitlab.gnome.org/GNOME/gtk/-/issues/2315</a><br> </div> Fri, 12 Feb 2021 03:44:50 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/845712/ https://lwn.net/Articles/845712/ ejr <div class="FormattedComment"> Gimp? That was the G in GTK.<br> </div> Thu, 11 Feb 2021 14:55:11 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/845147/ https://lwn.net/Articles/845147/ flussence <div class="FormattedComment"> All things considered, Emacs deserves some congratulations for getting out a release with GTK3 support so soon. I would&#x27;ve expected the G in GTK to get there first.<br> </div> Fri, 05 Feb 2021 02:49:07 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/845118/ https://lwn.net/Articles/845118/ nix <div class="FormattedComment"> Try disconnecting and connecting again on a *new X server*. Gtk used to get very confused in this case (but of course with an emacs --daemon on a remote host it is routine).<br> <p> This was definitely still happening with Gtk 3 as of two or three years ago.<br> </div> Thu, 04 Feb 2021 17:36:44 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/845062/ https://lwn.net/Articles/845062/ mtk <div class="FormattedComment"> as an emacs user since 1979(!) and a developer, i&#x27;ve always thought the primary challenge faced by emacs came from IDE&#x27;s that parsed &amp; analyzed edited source and made that semantic info available in useful ways. LSP is a great start and has generated lots of related tool development. but i&#x27;m lazy and don&#x27;t want to spend months figuring out which language-specific back end (how many are there for python now?) or completion library from MELPA to use with it. i want a *curated* collection of LSP tools incorporated into the core.<br> </div> Thu, 04 Feb 2021 13:43:52 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/845050/ https://lwn.net/Articles/845050/ yaap <div class="FormattedComment"> Sometimes I use Emacs in daemon mode with a Gtk build: &quot;GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0)&quot;. Connecting with gnuclient, closing the unique frame, and reconnecting later with a new frame has never been a problem. From what I understand this is the sort of client/server use that triggered the bug.<br> <p> In the Gtk bug you pointed to a maintainer comment at the end says the ticket was closed as now irrelevant, being related to a Gtk2 issue (an I use Gtk3). I don&#x27;t use the daemon mode much in the end, so don&#x27;t really stress it, but so far it worked for me.<br> <p> </div> Thu, 04 Feb 2021 11:00:34 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844870/ https://lwn.net/Articles/844870/ nix <div class="FormattedComment"> <font class="QuotedText">&gt; Nonetheless, it was one of the first signs that Emacs may be moving away from X.</font><br> <p> This is unlikely given the understandable but still notable lack of interest from the Gtk developers in bugs, some very old, which completely break important Emacs workflows: there are a bunch of obscure ones involving fonts (most of which seem to have been fixed now, probably as a result of the harfbuzz push): the big remaining one has to be <a href="https://gitlab.gnome.org/GNOME/gtk/issues/221">https://gitlab.gnome.org/GNOME/gtk/issues/221</a>... and note that it&#x27;s unclear if this is *actually* a bug any more but in over a year nobody has checked. (I&#x27;m planning to check when I eventually bite the bullet and upgrade to 27.1, but my Emacs is so crucial and breaking it is so disastrous that I hardly ever upgrade it!)<br> <p> One problem here is that Emacs does things with the display that more or less no other program does, so of course toolkit developers aren&#x27;t going to care much about fixing them since fixing them only affects one program. The big one is to open multiple sorts of display connections at once, and outlive them. This is usually done via emacs --daemon, but can be done directly without that being involved at all: you can open terminal connections on Emacsen started connected to X, you can open X connections on Emacsen started connected to the console or to nothing at all, then closing them and having Emacs keep running, then reopening them later and everything still works... I think one variant that doesn&#x27;t work is having all three of Win32 *and* X *and* console connections at once in an Emacs started on the console, because of limitations in the Win32 API, but every other combo I&#x27;m aware of works -- except Gtk. Close a Gtk connection and reopen it later and -- a decade ago, anyway -- Emacs crashed horribly inside Gtk. Whether it still crashes is, ah, unclear, but this sort of thing is a very common use case for those Emacs users who run our editors on beefy machines that aren&#x27;t our desktop: we want the Emacs and all its state to persist even when the desktop is rebooted. So I doubt the crusty old core developers will allow the old Lucid X toolkit to be torn out until that problem is actually confirmed fixed.<br> <p> </div> Tue, 02 Feb 2021 17:40:32 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844806/ https://lwn.net/Articles/844806/ tgerdin <div class="FormattedComment"> I think the commenter was referring to the required string conversion when moving between Emacs Lisp and Guile. <br> </div> Mon, 01 Feb 2021 22:41:41 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844563/ https://lwn.net/Articles/844563/ swilmet <div class="FormattedComment"> <font class="QuotedText">&gt; if there are developers who could provide GTK help</font><br> <p> While I cannot help for the Emacs&#x27;s GTK code, I have written this guide:<br> <a href="https://people.gnome.org/~swilmet/glib-gtk-book/">https://people.gnome.org/~swilmet/glib-gtk-book/</a><br> <p> To understand the GTK API, a basic knowledge about GLib and GObject is required. That&#x27;s what the guide describes (bottom-up approach).<br> <p> You may also be interested by the Emacs &quot;plugin&quot; for Devhelp, the API browser:<br> <a href="https://wiki.gnome.org/Apps/Devhelp">https://wiki.gnome.org/Apps/Devhelp</a><br> <a href="https://gitlab.gnome.org/GNOME/devhelp/-/blob/master/plugins/devhelp.el">https://gitlab.gnome.org/GNOME/devhelp/-/blob/master/plug...</a><br> </div> Fri, 29 Jan 2021 21:09:18 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844481/ https://lwn.net/Articles/844481/ zuki <div class="FormattedComment"> I installed the version from Fedora copr, and I&#x27;m very pleasantly surprised. The font rendering is, wow, much crispier. This is most likely because of a hidpi screen. Compared to the wayland version, the Xwayland version is simply blurry.<br> </div> Fri, 29 Jan 2021 14:26:29 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844479/ https://lwn.net/Articles/844479/ daenzer <div class="FormattedComment"> GTK4 uses OpenGL for its drawing by default, so that one stone should get an extra bird.<br> </div> Fri, 29 Jan 2021 13:41:40 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844472/ https://lwn.net/Articles/844472/ dottedmag <div class="FormattedComment"> Oh, wonders. I was thinking of doing the port myself, and... it is already done!<br> </div> Fri, 29 Jan 2021 09:43:41 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844463/ https://lwn.net/Articles/844463/ felixfix <div class="FormattedComment"> I got a tape in 1989 or 1990 to port to a &quot;Regulus&quot; real-time Unix whose file names had two fewer characters. That was quite a chore but I got it working.<br> </div> Fri, 29 Jan 2021 05:02:13 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844448/ https://lwn.net/Articles/844448/ atai <div class="FormattedComment"> not knowing the details, but it would seem strange that scheme and Emacs Lisp have semantic gap in boxing and unboxing...<br> </div> Fri, 29 Jan 2021 01:03:41 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844442/ https://lwn.net/Articles/844442/ iabervon <div class="FormattedComment"> It&#x27;s definitely the case that Emacs has some special complicated data types, and one of these is what Emacs considers an ordinary string.<br> </div> Thu, 28 Jan 2021 23:30:51 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844439/ https://lwn.net/Articles/844439/ mmaug <div class="FormattedComment"> I had spoken with one of the Emacs/Guile developers at LibrePlanet in &#x27;17 or &#x27;18 (I think). Performance was definitely an issue, but a lot of that problem was rooted in the fact that Emacs and Guile represented text chunks in very different ways and the need to convert back and forth between the two. I do not remember the details, but there was some discussion of the issue in the repo along side of the code. Unlike the GUI, Lisp is fundemental to the Emacs engine itself and the extra boxing/unboxing on every Lisp call is neither trivial nor efficient regardless how much faster the Lisp engine itself is. From what I recall of the conversation, this was seen as a significant problem and neither interest nor resources were available to address it.<br> </div> Thu, 28 Jan 2021 22:29:04 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844430/ https://lwn.net/Articles/844430/ jem Guile Emacs's startup speed was/is slower, not the speed in general. Also, the ability to run "most" Emacs Lisp was the state of things in 2014. In 2017 version 2.2.0 was released, which "provided a complete Emacs-compatible Elisp implementation, implementing all of Elisp's features and quirks in the same way as Emacs." Thu, 28 Jan 2021 19:41:37 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844426/ https://lwn.net/Articles/844426/ IanKelling <div class="FormattedComment"> <font class="QuotedText">&gt; real consideration</font><br> <p> I should have said real preparation or momentum to switch. But, I do agree there is a social problem as well.<br> </div> Thu, 28 Jan 2021 19:13:00 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844425/ https://lwn.net/Articles/844425/ IanKelling <div class="FormattedComment"> <font class="QuotedText">&gt; able to reliably run most Emacs Lisp code.&quot; And yet the reaction has been: &quot;meh&quot;.</font><br> <p> Afaik, it ran significantly slower. Also &quot;most&quot; needs to be more specific. Before any real consideration it would need to be really close, like 99%, &quot;most&quot; could mean 80%.<br> </div> Thu, 28 Jan 2021 19:11:23 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844421/ https://lwn.net/Articles/844421/ jem <p><blockquote>Other desired changes are more "socially easy", but are hard technically; these include making elisp faster so that more of Emacs could be written in Lisp rather than C.</blockquote></p> <p>We have GNU Guile 3.0, which features a JIT native code generator, and provides a "complete Emacs-compatible Elisp implementation"<a href="https://en.wikipedia.org/wiki/GNU_Guile#Emacs_integration"><sup>1</sup></a>. Work on Guile-emacs was started maybe a decade ago, and "as of October 2014, the implementation had reached a stage where Guile Emacs is able to reliably run most Emacs Lisp code." And yet the reaction has been: "meh".</p> <p>I really doubt a faster Elisp isn't a social problem.</p> Thu, 28 Jan 2021 18:39:05 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844422/ https://lwn.net/Articles/844422/ atai <div class="FormattedComment"> May you still get code from/to RMS, in whatever medium appropriate for that time, at 2085.<br> <p> </div> Thu, 28 Jan 2021 18:28:58 +0000 Wayland support (and more) for Emacs https://lwn.net/Articles/844414/ https://lwn.net/Articles/844414/ JoeBuck <div class="FormattedComment"> I remember getting the tape (probably made by RMS himself) in the mail at work in &#x27;85 or &#x27;86 (yes, I&#x27;m, shall we say, experienced). I also remember the skull drawing in the comment block above the display code.<br> <p> </div> Thu, 28 Jan 2021 17:33:48 +0000