From patchwork Sat Feb 11 10:06:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 46809 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DD9101661A; Sat, 11 Feb 2023 10:07:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 19210165F0 for ; Sat, 11 Feb 2023 10:07:27 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQmmi-0003gM-4q; Sat, 11 Feb 2023 05:07:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQmmc-0003d9-DV for guix-patches@gnu.org; Sat, 11 Feb 2023 05:07:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQmmc-0008K6-52 for guix-patches@gnu.org; Sat, 11 Feb 2023 05:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQmmb-00043b-Qt for guix-patches@gnu.org; Sat, 11 Feb 2023 05:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61421] [PATCH] gnu: Add emacs-with-motif Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Feb 2023 10:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61421 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61421@debbugs.gnu.org Cc: Andy Tai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167610998115547 (code B ref -1); Sat, 11 Feb 2023 10:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2023 10:06:21 +0000 Received: from localhost ([127.0.0.1]:38804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQmlx-00042h-Dv for submit@debbugs.gnu.org; Sat, 11 Feb 2023 05:06:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:34200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQmlv-00042V-7e for submit@debbugs.gnu.org; Sat, 11 Feb 2023 05:06:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQmlo-000334-64 for guix-patches@gnu.org; Sat, 11 Feb 2023 05:06:13 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQmlm-0008Cz-FW for guix-patches@gnu.org; Sat, 11 Feb 2023 05:06:11 -0500 Received: by mail-pl1-x633.google.com with SMTP id ja21so1494227plb.13 for ; Sat, 11 Feb 2023 02:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=IU6yA7IUzgkqSZ80rDftdc6qAXObrT3fkunE+rTnL6U=; b=KWLU28r2Wo/wppnUCgq+ajY7COCjNncjxDX7i11Bk4z4onuVpELj21zJX+yPOo4iow FC96eIBS1nGNm3DTc2igSJ5/Eufu1fkFbJcFAWH8CyiPoeq09OuoAU/qjlGljAWp0/0f vuvXsv2MFikAC4WR+gb+1eO7iMEMex9zcXHCCMalrDxIqgcPNP7a82ViyA7QL+6SaroG 8VQKialg1TXpTESg0FsT2+1ijgyOuMavttapIyM6l5g6iKWQcfl+o7FyPexTVzMX0Dtj w3A2ex/UB0ZTyBd7a6SnSasinLVeykJrm0RueJT7OSZMetx62vr5WVrclMUHHtabWXXU fF8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IU6yA7IUzgkqSZ80rDftdc6qAXObrT3fkunE+rTnL6U=; b=S14kfVVC8loTC2DHcGhNGp3VzNS/KeyWYOamrFiS9iGhWTnDLbOdm3iy8qoD7+X6aA o+QbeBq5FF2O3nyRME0XINal6IcJFXayyAtAKc3+7ICl3k+TENXZ+8hjJkoDq4y5L2Ok 7YcSXYvpYCLfAbwp2cFiC94xF7e40vp06FIOKDhz9r0zG9tHc4gsISCk6DSfPEsLzD6l wrY3v549QmuHBjaaRaz3oGMP1SNb+7PUbbOBhLyQGPZkYquF9Jm4MNCpj+hGmDzzy2YS WRmCk7cZvigzeyJuaIRt+li1rTSxSmvGH7/QgCGruHtpe1FwoH2VtYaoFbWsmKWSBi2o n+Iw== X-Gm-Message-State: AO0yUKUqNcxK9uLVJ50ZYS6Lzb4TXdvdU1HRiHorNg84lJrQV1tzvzDJ LZPLoy07v6ycLwVI754+8OQp06Kdg9c= X-Google-Smtp-Source: AK7set+U5zIT4YyUB8UhRWO4hf1FKYNzPoOHbGbC3FT8Agz4u1CGBJLMCwUOwqGhf/6K3pLrJYYlIw== X-Received: by 2002:a05:6a21:328b:b0:be:ea27:3c16 with SMTP id yt11-20020a056a21328b00b000beea273c16mr20742186pzb.35.1676109967887; Sat, 11 Feb 2023 02:06:07 -0800 (PST) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id 26-20020aa7921a000000b00593eb3a5e44sm4598249pfo.37.2023.02.11.02.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 02:06:07 -0800 (PST) From: Andy Tai Date: Sat, 11 Feb 2023 02:06:01 -0800 Message-Id: <20230211100601.4239-1-atai@atai.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=lichengtai@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/text-editors.scm (emacs-with-motif): New variable --- gnu/packages/emacs.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 4ce41deb88..3bdfbef093 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -66,6 +66,7 @@ (define-module (gnu packages emacs) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages image) + #:use-module (gnu packages lesstif) ; motif #:use-module (gnu packages linux) ; alsa-lib, gpm #:use-module (gnu packages mail) ; for mailutils #:use-module (gnu packages multiprecision) @@ -475,6 +476,25 @@ (define-public emacs-xwidgets (modify-inputs (package-inputs emacs) (prepend webkitgtk-with-libsoup2 libxcomposite))))) +(define-public emacs-with-motif + (package/inherit emacs + (name "emacs-with-motif") + (synopsis "The extensible, customizable, self-documenting text +editor (without an X toolkit)" ) + (build-system gnu-build-system) + (inputs (modify-inputs (package-inputs emacs) + (delete "gtk+") + (prepend inotify-tools motif))) + (arguments + (substitute-keyword-arguments (package-arguments emacs) + ((#:configure-flags flags #~'()) + #~(cons "--with-x-toolkit=motif" #$flags)) + ((#:modules _) (%emacs-modules build-system)) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'restore-emacs-pdmp) + (delete 'strip-double-wrap))))))) + (define-public emacs-no-x (package/inherit emacs (name "emacs-no-x")