all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#36230] [PATCH] Add emacs-multi-term
@ 2019-06-15 20:34 Baptiste Strazzulla
  2019-06-18 14:59 ` Ludovic Courtès
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Baptiste Strazzulla @ 2019-06-15 20:34 UTC (permalink / raw)
  To: 36230


[-- Attachment #1.1: Type: text/plain, Size: 2 bytes --]



[-- Attachment #1.2: Type: text/html, Size: 337 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-multi-term.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-emacs-multi-term.patch", Size: 2793 bytes --]

From 3118853b54988c68828c5e7e266d4959151b64cf Mon Sep 17 00:00:00 2001
From: Zzull <bstrazzull@hotmail.fr>
Date: Sat, 15 Jun 2019 22:32:19 +0200
Subject: [PATCH] gnu: Add emacs-multi-term

* gnu/packages/emacs-xyz.scm (emacs-multi-term): New variable
---
 gnu/packages/emacs-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 37bf9a06b9..39df468220 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -48,6 +48,7 @@
 ;;; Copyright © 2019 Gabriel Hondet <gabrielhondet@gmail.com>
 ;;; Copyright © 2019 LaFreniere, Joseph <joseph@lafreniere.xyz>
 ;;; Copyright © 2019 Amar Singh <nly@disroot.org>
+;;; Copyright © 2019 Baptiste Strazzulla <bstrazzull@hotmail.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -16014,3 +16015,48 @@ themselves live in an Org-mode file.  As such, this leverages the power of
 Org-mode (the notes may have outlines, latex fragments, babel, etc...) while
 acting like notes that are made @emph{in} the document.")
     (license license:gpl3+)))
+
+(define-public emacs-multi-term
+  (package
+    (name "emacs-multi-term")
+    (version "1.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/emacsorphanage/multi-term.git")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1bn6zx931vz2fa72ab999r33bxv8brn3cqmalvq25x7s4z3q1lyi"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; FIXME: `patch-el-files' crashes with the following error:
+         ;; unable to locate "zsh".
+         (delete 'patch-el-files))))
+    (home-page "https://github.com/emacsorphanage/multi-term")
+    (synopsis "Manage multiple terminal buffers in Emacs")
+    (description
+     "By default, term.el provides a great terminal emulator in Emacs.  But it
+lacks the following:
+
+ 1) term.el just provides commands @{term} or @{ansi-term} for creating a
+terminal buffer.  And there is no special command to create or switch between
+multiple terminal buffers quickly.
+
+ 2) By default, the keystrokes of term.el conflict with global-mode
+keystrokes, which makes it difficult for the user to integrate term.el with
+Emacs.
+
+ 3) By default, executing *NIX command @{exit} from term-mode, it will leave
+an unused buffer.
+
+ 4) term.el won’t quit running sub-process when you kill terminal buffer
+forcibly.
+
+ 5) Lacks a dedicated window for debugging program.
+
+ And multi-term.el is enhanced with those features.")
+    (license license:gpl3+)))
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#36230] [PATCH] Add emacs-multi-term
  2019-06-15 20:34 [bug#36230] [PATCH] Add emacs-multi-term Baptiste Strazzulla
@ 2019-06-18 14:59 ` Ludovic Courtès
  2019-06-23 18:35   ` [bug#36230] Fw: " Baptiste Strazzulla
  2019-06-25  8:53 ` Baptiste Strazzulla
  2019-06-30 11:38 ` Baptiste Strazzulla
  2 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2019-06-18 14:59 UTC (permalink / raw)
  To: Baptiste Strazzulla; +Cc: 36230

Hello,

Baptiste Strazzulla <bstrazzull@hotmail.fr> skribis:

> From 3118853b54988c68828c5e7e266d4959151b64cf Mon Sep 17 00:00:00 2001
> From: Zzull <bstrazzull@hotmail.fr>
> Date: Sat, 15 Jun 2019 22:32:19 +0200
> Subject: [PATCH] gnu: Add emacs-multi-term
>
> * gnu/packages/emacs-xyz.scm (emacs-multi-term): New variable

[...]

> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         ;; FIXME: `patch-el-files' crashes with the following error:
> +         ;; unable to locate "zsh".

Then I think you should add zsh as an input, such that ‘patch-el-files’
can modify the .el file to refer to zsh by its absolute file name.

> +    (description
> +     "By default, term.el provides a great terminal emulator in Emacs.  But it
> +lacks the following:

Could you replace this description by one that says what
emacs-multi-term is/does, rather than what term.el doesn’t do well?  :-)

See
<https://www.gnu.org/software/guix/manual/en/html_node/Synopses-and-Descriptions.html>.

Thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#36230] Fw: [bug#36230] [PATCH] Add emacs-multi-term
  2019-06-18 14:59 ` Ludovic Courtès
@ 2019-06-23 18:35   ` Baptiste Strazzulla
  2019-06-24 15:49     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Baptiste Strazzulla @ 2019-06-23 18:35 UTC (permalink / raw)
  To: 36230@debbugs.gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1380 bytes --]

Second attempt. I hope everything is at it's right place this time.

Regards


________________________________________
From: Ludovic Courtès <ludo@gnu.org>
Sent: Tuesday, June 18, 2019 2:59 PM
To: Baptiste Strazzulla
Cc: 36230@debbugs.gnu.org
Subject: Re: [bug#36230] [PATCH] Add emacs-multi-term

Hello,

Baptiste Strazzulla <bstrazzull@hotmail.fr> skribis:

> From 3118853b54988c68828c5e7e266d4959151b64cf Mon Sep 17 00:00:00 2001
> From: Zzull <bstrazzull@hotmail.fr>
> Date: Sat, 15 Jun 2019 22:32:19 +0200
> Subject: [PATCH] gnu: Add emacs-multi-term
>
> * gnu/packages/emacs-xyz.scm (emacs-multi-term): New variable

[...]

> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         ;; FIXME: `patch-el-files' crashes with the following error:
> +         ;; unable to locate "zsh".

Then I think you should add zsh as an input, such that ‘patch-el-files’
can modify the .el file to refer to zsh by its absolute file name.

> +    (description
> +     "By default, term.el provides a great terminal emulator in Emacs.  But it
> +lacks the following:

Could you replace this description by one that says what
emacs-multi-term is/does, rather than what term.el doesn’t do well?  :-)

See
<https://www.gnu.org/software/guix/manual/en/html_node/Synopses-and-Descriptions.html>.

Thank you!

Ludo’.

[-- Attachment #1.2: Type: text/html, Size: 2757 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-multi-term.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-emacs-multi-term.patch", Size: 2009 bytes --]

From 98ea2610efba5b656565aeea43f3e9a50b06e6c5 Mon Sep 17 00:00:00 2001
From: Zzull <bstrazzull@hotmail.fr>
Date: Sat, 15 Jun 2019 22:32:19 +0200
Subject: [PATCH] gnu: Add emacs-multi-term

* gnu/packages/emacs-xyz.scm (emacs-multi-term): New variable
---
 gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index dcdbcf7dd0..ecd9518646 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16081,3 +16081,34 @@ themselves live in an Org-mode file.  As such, this leverages the power of
 Org-mode (the notes may have outlines, latex fragments, babel, etc...) while
 acting like notes that are made @emph{in} the document.")
     (license license:gpl3+)))
+
+(define-public emacs-multi-term
+  (package
+    (name "emacs-multi-term")
+    (version "1.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/emacsorphanage/multi-term.git")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1bn6zx931vz2fa72ab999r33bxv8brn3cqmalvq25x7s4z3q1lyi"))))
+    (build-system emacs-build-system)
+    (propagated-inputs `(("zsh" ,zsh)))
+    (home-page "https://github.com/emacsorphanage/multi-term")
+    (synopsis "Manage multiple terminal buffers in Emacs")
+    (description
+     "This package enhances @{term.el} with the following features:
+
+@enumerate
+@item Functions to switch between multiple terminal buffers
+@item List of keys to be intercepted by @{emacs-multi-term} instead of by the
+underlying terminal
+@item Kills the unused buffer left after exiting the terminal
+@item Kills the running sub-processes along with the terminal when killing the
+it forcibly
+@item Dedicated window for debugging program
+@end enumerate")
+    (license license:gpl3+)))
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#36230] Fw: [bug#36230] [PATCH] Add emacs-multi-term
  2019-06-23 18:35   ` [bug#36230] Fw: " Baptiste Strazzulla
@ 2019-06-24 15:49     ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2019-06-24 15:49 UTC (permalink / raw)
  To: Baptiste Strazzulla; +Cc: 36230@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

Hello,

Baptiste Strazzulla <bstrazzull@hotmail.fr> skribis:

> Second attempt. I hope everything is at it's right place this time.

I made the changes below to address issues that ‘guix lint’ reported.

However, we’re out of luck because
<https://github.com/emacsorphanage/multi-term> is now 404.  Do you know
what the new URL is?

Thanks in advance,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1305 bytes --]

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ecd9518646..ca3d64bd43 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16096,19 +16096,19 @@ acting like notes that are made @emph{in} the document.")
                (base32
                 "1bn6zx931vz2fa72ab999r33bxv8brn3cqmalvq25x7s4z3q1lyi"))))
     (build-system emacs-build-system)
-    (propagated-inputs `(("zsh" ,zsh)))
+    (inputs `(("zsh" ,zsh)))
     (home-page "https://github.com/emacsorphanage/multi-term")
     (synopsis "Manage multiple terminal buffers in Emacs")
     (description
-     "This package enhances @{term.el} with the following features:
+     "This package enhances @code{term.el} with the following features:
 
 @enumerate
 @item Functions to switch between multiple terminal buffers
-@item List of keys to be intercepted by @{emacs-multi-term} instead of by the
+@item List of keys to be intercepted by @code{emacs-multi-term} instead of by the
 underlying terminal
 @item Kills the unused buffer left after exiting the terminal
 @item Kills the running sub-processes along with the terminal when killing the
 it forcibly
-@item Dedicated window for debugging program
+@item Dedicated window for debugging program.
 @end enumerate")
     (license license:gpl3+)))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#36230] [PATCH] Add emacs-multi-term
  2019-06-15 20:34 [bug#36230] [PATCH] Add emacs-multi-term Baptiste Strazzulla
  2019-06-18 14:59 ` Ludovic Courtès
@ 2019-06-25  8:53 ` Baptiste Strazzulla
  2019-06-30 11:38 ` Baptiste Strazzulla
  2 siblings, 0 replies; 7+ messages in thread
From: Baptiste Strazzulla @ 2019-06-25  8:53 UTC (permalink / raw)
  To: 36230@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

It's actually a good news because it seems that its original author adopted it again: https://github.com/manateelazycat/multi-term

He didn't make a release yet though. I'll update the guix definition later in the week. Sorry for the missed lint

[-- Attachment #2: Type: text/html, Size: 633 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#36230] [PATCH] Add emacs-multi-term
  2019-06-15 20:34 [bug#36230] [PATCH] Add emacs-multi-term Baptiste Strazzulla
  2019-06-18 14:59 ` Ludovic Courtès
  2019-06-25  8:53 ` Baptiste Strazzulla
@ 2019-06-30 11:38 ` Baptiste Strazzulla
  2019-07-02 15:58   ` bug#36230: " Ludovic Courtès
  2 siblings, 1 reply; 7+ messages in thread
From: Baptiste Strazzulla @ 2019-06-30 11:38 UTC (permalink / raw)
  To: 36230@debbugs.gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 487 bytes --]

And here is the third attempt. I changed the URL of the repository and pinned the only existing commit there.

On the side, I `./pre-inst-env guix lint emacs-multi-term` the previous patch that you had to correct because I remembered doing it before posting and as it turned out, nothing came out. There doesn't seem to be any additional options I should give to `guix lint` so I don't understand exactly why you had a more rigorous linting than mine. Do you have an idea?

Regards

[-- Attachment #1.2: Type: text/html, Size: 1258 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-multi-term.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-emacs-multi-term.patch", Size: 2108 bytes --]

From 9b8804a8fed18f77d72bb58113c823e3b29d7073 Mon Sep 17 00:00:00 2001
From: Zzull <bstrazzull@hotmail.fr>
Date: Sat, 15 Jun 2019 22:32:19 +0200
Subject: [PATCH] gnu: Add emacs-multi-term

* gnu/packages/emacs-xyz.scm (emacs-multi-term): New variable
---
 gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 238b204b3c..448f8122c8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16081,3 +16081,35 @@ themselves live in an Org-mode file.  As such, this leverages the power of
 Org-mode (the notes may have outlines, latex fragments, babel, etc...) while
 acting like notes that are made @emph{in} the document.")
     (license license:gpl3+)))
+
+(define-public emacs-multi-term
+  (let ((commit "0804b11e52b960c80f5cd0712ee1e53ae70d83a4"))
+    (package
+      (name "emacs-multi-term")
+      (version "1.2")
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/manateelazycat/multi-term.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0apvidmvb7rv05qjnjhax42ma8wrimik5vxx620dlbv17svz7iyf"))))
+      (build-system emacs-build-system)
+      (inputs `(("zsh" ,zsh)))
+      (home-page "https://github.com/manateelazycat/multi-term")
+      (synopsis "Manage multiple terminal buffers in Emacs")
+      (description
+       "This package enhances @code{term.el} with the following features:
+
+@enumerate
+@item Functions to switch between multiple terminal buffers
+@item List of keys to be intercepted by @code{emacs-multi-term} instead of by
+the underlying terminal
+@item Kills the unused buffer left after exiting the terminal
+@item Kills the running sub-processes along with the terminal when killing the
+it forcibly
+@item Dedicated window for debugging program.
+@end enumerate")
+      (license license:gpl3+))))
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#36230: [PATCH] Add emacs-multi-term
  2019-06-30 11:38 ` Baptiste Strazzulla
@ 2019-07-02 15:58   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2019-07-02 15:58 UTC (permalink / raw)
  To: Baptiste Strazzulla; +Cc: 36230@debbugs.gnu.org

Hi,

Baptiste Strazzulla <bstrazzull@hotmail.fr> skribis:

> On the side, I `./pre-inst-env guix lint emacs-multi-term` the previous patch that you had to correct because I remembered doing it before posting and as it turned out, nothing came out. There doesn't seem to be any additional options I should give to `guix lint` so I don't understand exactly why you had a more rigorous linting than mine. Do you have an idea?

We should both get the same ‘guix lint’ output.  :-)

> From 9b8804a8fed18f77d72bb58113c823e3b29d7073 Mon Sep 17 00:00:00 2001
> From: Zzull <bstrazzull@hotmail.fr>
> Date: Sat, 15 Jun 2019 22:32:19 +0200
> Subject: [PATCH] gnu: Add emacs-multi-term
>
> * gnu/packages/emacs-xyz.scm (emacs-multi-term): New variable

Applied, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-02 15:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-15 20:34 [bug#36230] [PATCH] Add emacs-multi-term Baptiste Strazzulla
2019-06-18 14:59 ` Ludovic Courtès
2019-06-23 18:35   ` [bug#36230] Fw: " Baptiste Strazzulla
2019-06-24 15:49     ` Ludovic Courtès
2019-06-25  8:53 ` Baptiste Strazzulla
2019-06-30 11:38 ` Baptiste Strazzulla
2019-07-02 15:58   ` bug#36230: " Ludovic Courtès

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.