all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
To: guix-devel@gnu.org
Subject: Add Emacs without GTK
Date: Tue, 29 Jul 2014 10:00:56 +0200	[thread overview]
Message-ID: <87vbqgd26f.fsf@taylan.uni.cx> (raw)

When using GTK, killing the X server will kill an Emacs daemon even if
all frames of it have been closed.

So here's a package inheriting from the default Emacs, taking out GTK
and passing its ./configure script the argument "--with-x-toolkit=no".
(If this isn't done explicitly and it can't find any toolkit, it will
complain.)

Note that this doesn't mean "no X", just no toolkit; this makes scroll
bars, tool bars, menus etc. ugly.  (I think most seasoned users
disable those anyway.)

AFAIK Lucid AKA Athena AKA Xaw isn't much prettier than no toolkit
either but if someone knows of advantages of Xaw or another supported
toolkit over no toolkit, say so.

Also say if you have a better idea for the package name than
"emacs-no-x-toolkit".


===File
/home/tub/media/src/guix/0001-gnu-Add-emacs-no-x-toolkit.patch===
From eb8b480c810322f8f986fc7cdb230f57e269a8c6 Mon Sep 17 00:00:00 2001
From: Taylan Ulrich B <taylanbayirli@gmail.com>
Date: Mon, 28 Jul 2014 22:26:59 +0200
Subject: [PATCH] gnu: Add emacs-no-x-toolkit.

* gnu/packages/emacs.scm (emacs-no-x-toolkit): New variable.
---
 gnu/packages/emacs.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index af8772e..2ed9e7b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -36,7 +36,9 @@
   #:use-module ((gnu packages compression)
                 #:renamer (symbol-prefix-proc 'compression:))
   #:use-module (gnu packages xml)
-  #:use-module (gnu packages glib))
+  #:use-module (gnu packages glib)
+  #:use-module (guix utils)
+  #:use-module (srfi srfi-1))
 
 (define-public emacs
   (package
@@ -102,6 +104,15 @@ large Lisp programs.  It has full Unicode support for nearly all human
 languages.")
     (license gpl3+)))
 
+(define-public emacs-no-x-toolkit
+  (package (inherit emacs)
+    (name "emacs-no-x-toolkit")
+    (inputs (alist-delete "gtk+" (package-inputs emacs)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments emacs)
+       ((#:configure-flags flags)
+        `(cons "--with-x-toolkit=no" ,flags))))))
+
 \f
 ;;;
 ;;; Emacs hacking.
-- 
1.8.4

============================================================

             reply	other threads:[~2014-07-29  8:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29  8:00 Taylan Ulrich Bayirli/Kammer [this message]
2014-08-11 16:42 ` Add Emacs without GTK Ludovic Courtès
2014-08-11 16:43 ` Ludovic Courtès
2014-08-11 19:09   ` Taylan Ulrich Bayirli/Kammer
2014-08-11 20:35     ` Ludovic Courtès

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbqgd26f.fsf@taylan.uni.cx \
    --to=taylanbayirli@gmail.com \
    --cc=guix-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.