From mboxrd@z Thu Jan 1 00:00:00 1970 From: Taylan Ulrich Bayirli/Kammer Subject: Add Emacs without GTK Date: Tue, 29 Jul 2014 10:00:56 +0200 Message-ID: <87vbqgd26f.fsf@taylan.uni.cx> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC2LG-0005DF-ED for guix-devel@gnu.org; Tue, 29 Jul 2014 04:01:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC2LF-0001Bn-DC for guix-devel@gnu.org; Tue, 29 Jul 2014 04:01:02 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:39955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC2LF-0001Bg-6a for guix-devel@gnu.org; Tue, 29 Jul 2014 04:01:01 -0400 Received: by mail-we0-f173.google.com with SMTP id q58so8512118wes.4 for ; Tue, 29 Jul 2014 01:00:59 -0700 (PDT) Received: from taylan.uni.cx (p200300514A35417A0213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a35:417a:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id u7sm12647131wif.3.2014.07.29.01.00.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jul 2014 01:00:58 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org 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 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)))))) + ;;; ;;; Emacs hacking. -- 1.8.4 ============================================================