Slashdot Mirror


GNU Emacs Now Has Native Support For GTK Widgets (phoronix.com)

An anonymous reader writes: The GNU Emacs text editor now has merged the X Widgets branch. What this work allows is for embedding GTK+ user interface widgets within Emacs for features like landing MPlayer or a full web browser in Emacs. This allows now for more endless opportunities for the 40 year old GNU text editor. The X/GTK widgets support will come with GNU Emacs 25.1.

7 of 133 comments (clear)

  1. Re:Old joke even more true.... by PPH · · Score: 5, Funny

    Emacs is the purest implementation of Zawinski's Law

    --
    Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d exit X Q ^C ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^H man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D man quit ^C ^c ?Quit ?q CtrlShftDel "Hey, what does this button d..."

    --
    Have gnu, will travel.
  2. EMACS Memory Footprint? by superid · · Score: 4, Interesting

    I remember when you would say "Eight Meg And Currently Swapping" and that was a funny criticism of how bloated EMACS was.
    What's the mem footprint today?

    1. Re:EMACS Memory Footprint? by olau · · Score: 5, Informative

      My Emacs with a ton of buffers opened with a bunch of fancy modes is using 66 MB resident, according to top. It's been open for 6 hours now.

      A fresh instance with no stuff in it (emacs -Q) is 39 MB.

  3. Re:And nothing of value was added ... by gstoddart · · Score: 4, Insightful

    Funniest thing I ever saw was a guy who was so utterly dependent on his emacs as to be crippled without it ... and then he's on a client site, on a Solaris workstation he can't install software onto ... and the only editor he had was vi. He was almost in tears (we were too but from laughing at him).

    Anybody who is going to use unix-type systems and doesn't know how to do at least some basics in vi is just asking to be made to look like an idiot.

    I must confess, I've never grasped this incessant need to do everything from within emacs. I find it tends to create people who spend endless hours honing their editor instead of doing their jobs, and who suddenly can't do anything without all the training wheels they've added.

    Seriously, check the damned weather somewhere else.

    --
    Lost at C:>. Found at C.
  4. Re:And nothing of value was added ... by fahrbot-bot · · Score: 4, Insightful

    Seriously, this is SUCH a niche product. Everyone uses a VI clone because it's guaranteed to be present on *nux systems.

    Emacs is a niche product? I've used Emacs (or XEmacs) on every system I've every used and/or administered, from PCs running BSD, Linux and Windows to just about every known mid-large Unix BDS/SysV system to Cray supercomputers since the mid 1980s. (Running Emacs on a Cray 2 is truly a guilty pleasure.) True I may have had to install (or build and install) it myself, but still hardly niche.

    Of course, I *also* know vi/vim for simple editing tasks. For serious programming, I always use Emacs or XEmacs. One can always use the vi/vim emulation mode in Emacs... :-)

    --
    It must have been something you assimilated. . . .
  5. Re:Old joke even more true.... by Anonymous Coward · · Score: 5, Interesting

    Why is it ridiculous?

    I've used emacs for 20 years almost purely as a text editor, though it was my email client for about five years. The beauty of emacs is that you *can* do almost anything, but it doesn't make you. If all you want is a text editor, that's all it is, and you won't even know it can do other things unless you try to make it.

    "Products" (word, firefox, etc...) will try to force you to use the new and useless (to you) capabilities with every release and prevent you from using it as the simple tool that you want. Emacs is the simple tool that you want first and foremost, and if you want more, it probably is that as well.

    It is perfect.

  6. Great news! by tamyrlin · · Score: 4, Interesting
    That is really great news. Good enough that I actually logged in to comment rather than commenting anonymously as I usually do. I've been following the xwidgets branch from the sidelines for some time but never bothered to build Joakim Verona's branch myself. It should be noted though that what was merged was not the full xwidgets experience, rather the xwidgets_mvp branch. This branch only contains support for embedding a webkit browser widget. (Although even that will be extremely useful I believe.)

    The xwidgets branch however promises even more. The main use case (at least from my point of view) isn't really to put normal widgets such as gtk buttons or sliders or anything like that in an emacs window. From my point of view the most important thing is that you will be able to embed whole applications using the GtkSocket widget. This means that you could, for example:
    * Have a good PDF viewer embedded in one buffer while you are editing latex source code in another and be able to easily switch between those buffers using emacs commands.
    * You could have inkscape running in one buffer and use normal inkscape editing commands for almost everything, except when you are editing text. In those situations you may want to use emacs commands instead.
    * You could have a *good* webbrowser running inside emacs to search for documentation online while coding

    Of course, the main xwidgets branch also opens up possibililties when it comes to prettyifying a lot of built in emacs applications. However, I don't find that very necessary in many cases. One of the main advantages with emacs is that (almost) everything is text, which means that you get a synergistic effect the more you do inside emacs.

    ; Witty end of comment for emacs aficionados:
    (animate-string "Congratulations to Joakim Verona for getting this merged" 10 10)