From unknown Mon Aug 18 00:06:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39093 <39093@debbugs.gnu.org> To: bug#39093 <39093@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add emacs-vterm. Reply-To: bug#39093 <39093@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:06:09 +0000 retitle 39093 [PATCH] gnu: Add emacs-vterm. reassign 39093 guix-patches submitter 39093 "LaFreniere\, Joseph" severity 39093 normal tag 39093 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 22:50:52 2020 Received: (at submit) by debbugs.gnu.org; 12 Jan 2020 03:50:53 +0000 Received: from localhost ([127.0.0.1]:56930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqUH0-0006Ds-Cu for submit@debbugs.gnu.org; Sat, 11 Jan 2020 22:50:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:49501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqUGx-0006Di-P8 for submit@debbugs.gnu.org; Sat, 11 Jan 2020 22:50:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52158) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqUGv-0002RB-RA for guix-patches@gnu.org; Sat, 11 Jan 2020 22:50:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqUGt-0007nj-Nk for guix-patches@gnu.org; Sat, 11 Jan 2020 22:50:41 -0500 Received: from mx.kolabnow.com ([95.128.36.42]:4692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqUGt-0007g5-6m for guix-patches@gnu.org; Sat, 11 Jan 2020 22:50:39 -0500 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id BC86C640 for ; Sun, 12 Jan 2020 04:50:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1578801034; x=1580615435; bh=70DIWPNSjLYtXn5/qKG hZMrfqzirhZVVjJdzmI9y1N0=; b=Z343OTgMhFzGhXUK1o1ltjI2hSJDisOOpJI hvQBhtwSkKi908kmWVhpHhMjuDO+QWIld7MPWSLxcy0y+Wdj893bDJUYspdc/qds bG6A6wdafVw4nsaLsJ4OsA/WB9Z1UExstBTev8D/4KqgKN3SA0QQKdPiOEPihnjb uyyW238JCsgxMY0J3u/ovo/aW9MSfGCSvAh/oTJHdHPoVCmnVUHOi8Lv5IDCm/O+ 4f4icALvvdyaSTG2t2hzlEyfAxqP7NwzRat8AVJNV/6UhLhwdyhYVbpbvBhBeO87 73lyV3mao8R5oGuGHb3iHLvk/3biUVRJZKslAs2tU2ZsmOubNTRRcAqIyr2Sq5jt LUm46KDLaCgBg2p2uUF8y1qAWmnXCxib22kaPLDg7ZJeAab4VsvcG9ylNC+a8tqw 40baTQOcROjMr2rIEciFLowN0uZbGw88dGh7B1EoCLxMK/jwQbSh6rKJVq6a0Gbx ui6gRKtjljyb2PFCQMLfYavp7Biv3u54/lGlAxfrgCwe3+0upimDBXwoijj1/oLc odTQVGhERyaaWgyoj+YtRxETr/OJzGznDKtv5NNmosV6vRiSEXgmieoB5E1LX38o CqQ8APL3wN/Exav5++Q28LpcpPA7TbJ6GuVNQJakTSPEf0n3F9oGxDyydwuNrhl/ 2KJpEt2s= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b2VufmWZcurz for ; Sun, 12 Jan 2020 04:50:34 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 87B972DF for ; Sun, 12 Jan 2020 04:50:34 +0100 (CET) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 48A3037A for ; Sun, 12 Jan 2020 04:50:34 +0100 (CET) From: "LaFreniere\, Joseph" To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-vterm. Date: Sat, 11 Jan 2020 21:50:26 -0600 Message-ID: <87r20549kt.fsf@lafreniere.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 95.128.36.42 X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Patch files is attached. There have not yet been any tagged releases in the source repo, so I have left the version as 0. I initially tried using a patch file instead of manually using the substitute snippet, but that was failing with an error that vterm.el was read-only. If there is a workaround, I would gladly return t [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: autistici.org] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=joseph%40lafreniere.xyz; ip=209.51.188.17; r=debbugs.gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: lafreniere.xyz (xyz)] 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) --=-=-= Content-Type: text/plain; format=flowed Patch files is attached. There have not yet been any tagged releases in the source repo, so I have left the version as 0. I initially tried using a patch file instead of manually using the substitute snippet, but that was failing with an error that vterm.el was read-only. If there is a workaround, I would gladly return to using a patch file. -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-vterm.patch Content-Transfer-Encoding: quoted-printable >From 06223ab2ed07b3fbfb2dfd95aa0a5fce1c44baf9 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Mon, 6 Jan 2020 20:56:35 -0600 Subject: [PATCH] gnu: Add emacs-vterm. * gnu/packages/emacs-xyz.scm (emacs-vterm): New variable. --- gnu/packages/emacs-xyz.scm | 67 +++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 0559f0c7cc..9a0f08e16a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -46,7 +46,7 @@ ;;; Copyright =C2=A9 2019 Brian Leung ;;; Copyright =C2=A9 2019 mikadoZero ;;; Copyright =C2=A9 2019 Gabriel Hondet -;;; Copyright =C2=A9 2019 LaFreniere, Joseph +;;; Copyright =C2=A9 2019, 2020 Joseph LaFreniere ;;; Copyright =C2=A9 2019 Amar Singh ;;; Copyright =C2=A9 2019 Baptiste Strazzulla ;;; Copyright =C2=A9 2019 Giacomo Leidi @@ -105,6 +105,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages telephony) + #:use-module (gnu packages terminals) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages tcl) @@ -17401,6 +17402,70 @@ next, volume) and display and control the current = playlist as well as your stored playlists.") (license license:gpl3+))) =20 +(define-public emacs-vterm + (let ((version "0") + (revision "1") + (commit "7d7381fa8104b55b70148cf147523d9ab7f01fcd")) + (package + (name "emacs-vterm") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/akermu/emacs-libvterm.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04a2jlhmr20ipgzpnba3yryw3ly7qdxjgaw10dwn9wxy1yqmapz1")) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file "vterm-module-make.el") + (substitute* "vterm.el" + (((string-append "\\(or \\(require 'vterm-module nil= t\\)\n" + "^.*\\(and \\(require 'vterm-module= -make\\)\n" + "^.*\\(require 'vterm-module\\)\\)\= \)")) + "(module-load \"vterm-module.so)")) + (make-file-writable "vterm.el") + #t)))) + (build-system emacs-build-system) + (arguments + `(#:modules ((guix build emacs-build-system) + ((guix build cmake-build-system) #:prefix cmake:) + (guix build utils)) + #:imported-modules (,@%emacs-build-system-modules + (guix build cmake-build-system)) + #:phases (modify-phases %standard-phases + (add-before 'add-source-to-load-path 'configure + (lambda* (#:key outputs #:allow-other-keys) + ((assoc-ref cmake:%standard-phases 'configure) + #:outputs outputs + #:out-of-source? #f + #:configure-flags '("-DUSE_SYSTEM_LIBVTERM=3DON")= ))) + (add-before 'install 'make + (lambda* (#:key (make-flags '()) #:allow-other-keys) + (apply invoke "make" "all" make-flags) + #t)) + (add-before 'make-autoloads 'move-el + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (site-lisp (string-append out "/share/emacs= /site-lisp"))) + (mkdir-p site-lisp) + (copy-file "vterm.el" (string-append site-lisp "= /vterm.el")) + (copy-file "vterm-module.so" (string-append site= -lisp "/vterm-module.so")) + #t)))) + #:tests? #f)) + (native-inputs + `(("cmake" ,cmake-minimal) + ("libtool" ,libtool) + ("libvterm" ,libvterm))) + (home-page "https://github.com/akermu/emacs-libvterm") + (synopsis "Emacs libvterm integration") + (description "This package implements a bridge to @code{libvterm} to +display a terminal in an Emacs buffer.") + (license license:gpl3+)))) + (define-public emacs-simple-mpc ;; There have been no releases. (let ((commit "bee8520e81292b4c7353e45b193f9a13b482f5b2") --=20 2.24.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 09:07:27 2020 Received: (at 39093) by debbugs.gnu.org; 21 Jan 2020 14:07:27 +0000 Received: from localhost ([127.0.0.1]:46646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ituBf-00023X-Q7 for submit@debbugs.gnu.org; Tue, 21 Jan 2020 09:07:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ituBb-00023I-Hy for 39093@debbugs.gnu.org; Tue, 21 Jan 2020 09:07:23 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ituBV-0000JM-Si; Tue, 21 Jan 2020 09:07:13 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=34482 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ituBT-00079J-Ly; Tue, 21 Jan 2020 09:07:13 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "LaFreniere\, Joseph" Subject: Re: [bug#39093] [PATCH] gnu: Add emacs-vterm. References: <87r20549kt.fsf@lafreniere.xyz> Date: Tue, 21 Jan 2020 15:07:10 +0100 In-Reply-To: <87r20549kt.fsf@lafreniere.xyz> (Joseph LaFreniere's message of "Sat, 11 Jan 2020 21:50:26 -0600") Message-ID: <871rrsewdt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 39093 Cc: 39093@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Hello Joseph, "LaFreniere, Joseph" skribis: >>>From 06223ab2ed07b3fbfb2dfd95aa0a5fce1c44baf9 Mon Sep 17 00:00:00 2001 > From: Joseph LaFreniere > Date: Mon, 6 Jan 2020 20:56:35 -0600 > Subject: [PATCH] gnu: Add emacs-vterm. > > * gnu/packages/emacs-xyz.scm (emacs-vterm): New variable. Neat! > + (modules '((guix build utils))) > + (snippet > + '(begin > + (delete-file "vterm-module-make.el") > + (substitute* "vterm.el" > + (((string-append "\\(or \\(require 'vterm-module n= il t\\)\n" > + "^.*\\(and \\(require 'vterm-modu= le-make\\)\n" > + "^.*\\(require 'vterm-module\\)\\= )\\)")) > + "(module-load \"vterm-module.so)")) > + (make-file-writable "vterm.el") Apparently this substitution doesn=E2=80=99t have the desired effect. Also, I strongly recommend using literal strings as patterns. Actually, what about performing this substitution as a phase instead of here? We could probably use =E2=80=98emacs-substitute-sexps=E2=80=99 to do= that, which should be nicer, and we could also hard-code the absolute file name of =E2=80=98vterm-module.so=E2=80=99. How does that sound? The rest LGTM! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 26 10:07:04 2020 Received: (at 39093) by debbugs.gnu.org; 26 Jan 2020 15:07:04 +0000 Received: from localhost ([127.0.0.1]:57281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivjV3-00020H-K2 for submit@debbugs.gnu.org; Sun, 26 Jan 2020 10:07:04 -0500 Received: from mx.kolabnow.com ([95.128.36.41]:4964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivjV0-0001zz-Vn for 39093@debbugs.gnu.org; Sun, 26 Jan 2020 10:06:56 -0500 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id D6469469; Sun, 26 Jan 2020 16:06:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:references:received :received:received; s=dkim20160331; t=1580051208; x=1581865609; bh=02Dwk1Izh02ZkCRxFGWakGZ7x4quOPA5u1vdSteYtPk=; b=wiqTVNlT9dDY U6oNe3pZajLuj1/nlOTFOdoa60k0F5rzCFoUdNg4/7c+5LnZj7kzJdtT/9go+hto 59DdBxeZmVo/Royewz8v/j78okqJ5bi5j6v7UNbNlJeLbJks3D1HiVwK+MIHSgiE lf9r4qyJA3vtjtjppPgKxYA+/brUT3wDiQn6JXQGMip/jdBUYq/hX2gCptrGWNmX voNDyM9AuMMtihnB8ypF6gr6sv0v48egq12DTZduFmudb3uA1vJ47iGKWGFoyYOs 7c1WR0olwMML+zqFgDf43UuauxZi7MWY/9Ar2SqbDRI2RMFzI7/HO45Rlmjg/QNn fLaMoTZsoD8lKarVqEvZGa8clmIq+eKlHn53GvpYO5wYQHlTxeHxqII0fSY4xdK5 OM7fMrwsOV2SpqC5we0iv6+emvC2nDORuoYehsm+u3NPO5F7GpEQcD3yhGqwGqNm pckhLSukmj22QkvxmaY1OAGwiZPQ4l2Q8/bmcCHYTdjW3gXJMR4UlZOKnkv2alUz 53XY/0UC9vKHIC3fDV0emut/H2coje47/EKpzko1iB0N8G2l0JaKEMBuXJWON0kc Wpt0m/k1CD5lJ7TZYsW7mPegAZzYKXFF+Qk9OJEzDVvccVGQjMLqVWCpj+N9oKG9 KhD9tSmnO0M/Ezs561UlxlUTwJEa5P8= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zmLiFuJW6W5E; Sun, 26 Jan 2020 16:06:48 +0100 (CET) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 0B201279; Sun, 26 Jan 2020 16:06:46 +0100 (CET) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx003.mykolab.com (Postfix) with ESMTPS id B4B36202D; Sun, 26 Jan 2020 16:06:46 +0100 (CET) References: <87r20549kt.fsf@lafreniere.xyz> <871rrsewdt.fsf@gnu.org> From: "LaFreniere\, Joseph" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#39093] [PATCH] gnu: Add emacs-vterm. In-reply-to: <871rrsewdt.fsf@gnu.org> Date: Sun, 26 Jan 2020 09:06:42 -0600 Message-ID: <871rrmtfy5.fsf@lafreniere.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 2.4 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Ludovic Courtès writes: > Actually, what about performing this substitution as a phase > instead of > here? We could probably use ‘emacs-substitute-sexps’ to do > that, which > sho [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] 1.9 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: lafreniere.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [95.128.36.41 listed in list.dnswl.org] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 39093 Cc: 39093@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.4 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Ludovic Courtès writes: > Actually, what about performing this substitution as a phase > instead of > here? We could probably use ‘emacs-substitute-sexps’ to do > that, which > sho [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: lafreniere.xyz] 1.9 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: lafreniere.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Actually, what about performing this substitution as a phase=20 > instead of > here? We could probably use =E2=80=98emacs-substitute-sexps=E2=80=99 to = do=20 > that, which > should be nicer, and we could also hard-code the absolute file=20 > name of > =E2=80=98vterm-module.so=E2=80=99. Thank you for the feedback, Ludo. A new patch is attached. Both of the suggested changes (using=20 emacs-substitute-sexps and hardcoding the absolute path of the=20 shared object) have been implemented. Additionally, the shared=20 object has been moved into /lib. -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-vterm.patch Content-Transfer-Encoding: quoted-printable >From 74e99bf345ef14b08a052c923418a068c9a24de0 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Mon, 6 Jan 2020 20:56:35 -0600 Subject: [PATCH] gnu: Add emacs-vterm. * gnu/packages/emacs-xyz.scm (emacs-vterm): New variable. --- gnu/packages/emacs-xyz.scm | 70 +++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 40839d4869..d30a3ecbc1 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -46,7 +46,7 @@ ;;; Copyright =C2=A9 2019 Brian Leung ;;; Copyright =C2=A9 2019 mikadoZero ;;; Copyright =C2=A9 2019 Gabriel Hondet -;;; Copyright =C2=A9 2019 LaFreniere, Joseph +;;; Copyright =C2=A9 2019, 2020 Joseph LaFreniere ;;; Copyright =C2=A9 2019 Amar Singh ;;; Copyright =C2=A9 2019 Baptiste Strazzulla ;;; Copyright =C2=A9 2019 Giacomo Leidi @@ -105,6 +105,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages telephony) + #:use-module (gnu packages terminals) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages tcl) @@ -17401,6 +17402,73 @@ next, volume) and display and control the current = playlist as well as your stored playlists.") (license license:gpl3+))) =20 +(define-public emacs-vterm + (let ((version "0") + (revision "1") + (commit "7d7381fa8104b55b70148cf147523d9ab7f01fcd")) + (package + (name "emacs-vterm") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/akermu/emacs-libvterm.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04a2jlhmr20ipgzpnba3yryw3ly7qdxjgaw10dwn9wxy1yqmapz1"))= )) + (build-system emacs-build-system) + (arguments + `(#:modules ((guix build emacs-build-system) + ((guix build cmake-build-system) #:prefix cmake:) + (guix build emacs-utils) + (guix build utils)) + #:imported-modules (,@%emacs-build-system-modules + (guix build cmake-build-system)) + #:phases + (modify-phases %standard-phases + (add-before 'add-source-to-load-path 'remove-vterm-module-make + (lambda* (#:key outputs #:allow-other-keys) + ;; Remove the Emacs Lisp file. + (delete-file "vterm-module-make.el") + ;; Remove references to the removed file. + (make-file-writable "vterm.el") + (emacs-substitute-sexps "vterm.el" + ("(or (require 'vterm-module nil t)" + `(module-load + ,(string-append (assoc-ref outputs "out") + "/lib/vterm-module.so")))) + #t)) + (add-after 'build 'configure + ;; Run cmake. + (lambda* (#:key outputs #:allow-other-keys) + ((assoc-ref cmake:%standard-phases 'configure) + #:outputs outputs + #:out-of-source? #f + #:configure-flags '("-DUSE_SYSTEM_LIBVTERM=3DON")) + #t)) + (add-after 'configure 'make + ;; Run make. + (lambda* (#:key (make-flags '()) outputs #:allow-other-keys) + ;; Compile the shared object file. + (apply invoke "make" "all" make-flags) + ;; Move the file into /lib. + (install-file + "vterm-module.so" + (string-append (assoc-ref outputs "out") "/lib")) + #t))) + #:tests? #f)) + (native-inputs + `(("cmake" ,cmake-minimal) + ("libtool" ,libtool) + ("libvterm" ,libvterm))) + (home-page "https://github.com/akermu/emacs-libvterm") + (synopsis "Emacs libvterm integration") + (description "This package implements a bridge to @code{libvterm} to +display a terminal in an Emacs buffer.") + (license license:gpl3+)))) + (define-public emacs-simple-mpc ;; There have been no releases. (let ((commit "bee8520e81292b4c7353e45b193f9a13b482f5b2") --=20 2.24.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 26 17:11:08 2020 Received: (at 39093-done) by debbugs.gnu.org; 26 Jan 2020 22:11:08 +0000 Received: from localhost ([127.0.0.1]:57604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivq7X-00088n-I2 for submit@debbugs.gnu.org; Sun, 26 Jan 2020 17:11:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivq7V-00088I-RX for 39093-done@debbugs.gnu.org; Sun, 26 Jan 2020 17:11:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ivq7Q-0003GG-IJ; Sun, 26 Jan 2020 17:11:00 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33888 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ivq7Q-0004ej-5v; Sun, 26 Jan 2020 17:11:00 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "LaFreniere\, Joseph" Subject: Re: [bug#39093] [PATCH] gnu: Add emacs-vterm. References: <87r20549kt.fsf@lafreniere.xyz> <871rrsewdt.fsf@gnu.org> <871rrmtfy5.fsf@lafreniere.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 26 Jan 2020 23:10:58 +0100 In-Reply-To: <871rrmtfy5.fsf@lafreniere.xyz> (Joseph LaFreniere's message of "Sun, 26 Jan 2020 09:06:42 -0600") Message-ID: <87y2tt6f7x.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, "LaFreniere, Joseph" skribis: > A new patch is attached. Both of the suggested changes (using > emacs-substitute-sexps and hardcoding the absolute path of the shared > object) have been implemented. Additionally, the shared object [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.9 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: lafreniere.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: lafreniere.xyz] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.92 listed in list.dnswl.org] X-Debbugs-Envelope-To: 39093-done Cc: 39093-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Hi, "LaFreniere, Joseph" skribis: > A new patch is attached. Both of the suggested changes (using > emacs-substitute-sexps and hardcoding the absolute path of the shared > object) have been implemented. Additionally, the shared object has > been moved into /lib. Awesome. > From 74e99bf345ef14b08a052c923418a068c9a24de0 Mon Sep 17 00:00:00 2001 > From: Joseph LaFreniere > Date: Mon, 6 Jan 2020 20:56:35 -0600 > Subject: [PATCH] gnu: Add emacs-vterm. > > * gnu/packages/emacs-xyz.scm (emacs-vterm): New variable. Applied, thanks! Ludo=E2=80=99. From unknown Mon Aug 18 00:06:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 24 Feb 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator