GNU bug report logs - #39093
[PATCH] gnu: Add emacs-vterm.

Previous Next

Package: guix-patches;

Reported by: "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>

Date: Sun, 12 Jan 2020 03:51:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39093 in the body.
You can then email your comments to 39093 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39093; Package guix-patches. (Sun, 12 Jan 2020 03:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 12 Jan 2020 03:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add emacs-vterm.
Date: Sat, 11 Jan 2020 21:50:26 -0600
[Message part 1 (text/plain, inline)]
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
[0001-gnu-Add-emacs-vterm.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#39093; Package guix-patches. (Tue, 21 Jan 2020 14:08:01 GMT) Full text and rfc822 format available.

Message #8 received at 39093 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>
Cc: 39093 <at> debbugs.gnu.org
Subject: Re: [bug#39093] [PATCH] gnu: Add emacs-vterm.
Date: Tue, 21 Jan 2020 15:07:10 +0100
Hello Joseph,

"LaFreniere, Joseph" <joseph <at> lafreniere.xyz> skribis:

>>From 06223ab2ed07b3fbfb2dfd95aa0a5fce1c44baf9 Mon Sep 17 00:00:00 2001
> From: Joseph LaFreniere <joseph <at> lafreniere.xyz>
> 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 nil t\\)\n"
> +                                       "^.*\\(and \\(require 'vterm-module-make\\)\n"
> +                                       "^.*\\(require 'vterm-module\\)\\)\\)"))
> +                       "(module-load \"vterm-module.so)"))
> +                    (make-file-writable "vterm.el")

Apparently this substitution doesn’t 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 ‘emacs-substitute-sexps’ to do that, which
should be nicer, and we could also hard-code the absolute file name of
‘vterm-module.so’.

How does that sound?

The rest LGTM!

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#39093; Package guix-patches. (Sun, 26 Jan 2020 15:08:02 GMT) Full text and rfc822 format available.

Message #11 received at 39093 <at> debbugs.gnu.org (full text, mbox):

From: "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39093 <at> debbugs.gnu.org
Subject: Re: [bug#39093] [PATCH] gnu: Add emacs-vterm.
Date: Sun, 26 Jan 2020 09:06:42 -0600
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Actually, what about performing this substitution as a phase 
> instead of
> here?  We could probably use ‘emacs-substitute-sexps’ to do 
> that, which
> should be nicer, and we could also hard-code the absolute file 
> name of
> ‘vterm-module.so’.

Thank you for the feedback, Ludo.

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.

--
Joseph LaFreniere
[0001-gnu-Add-emacs-vterm.patch (text/x-patch, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 26 Jan 2020 22:12:01 GMT) Full text and rfc822 format available.

Notification sent to "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>:
bug acknowledged by developer. (Sun, 26 Jan 2020 22:12:01 GMT) Full text and rfc822 format available.

Message #16 received at 39093-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "LaFreniere\, Joseph" <joseph <at> lafreniere.xyz>
Cc: 39093-done <at> debbugs.gnu.org
Subject: Re: [bug#39093] [PATCH] gnu: Add emacs-vterm.
Date: Sun, 26 Jan 2020 23:10:58 +0100
Hi,

"LaFreniere, Joseph" <joseph <at> lafreniere.xyz> 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 <joseph <at> lafreniere.xyz>
> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Feb 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.