unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#63370] [PATCH] gnu: Add emacs-framemove.
@ 2023-05-08 13:05 Fabio Natali
  2023-05-08 16:15 ` Nicolas Goaziou
  2023-05-08 19:07 ` Fabio Natali
  0 siblings, 2 replies; 6+ messages in thread
From: Fabio Natali @ 2023-05-08 13:05 UTC (permalink / raw)
  To: 63370; +Cc: Fabio Natali

Hi, this tiny patch is to add FrameMove, an Emacs package that allows to move
focus across windows and frames. IIUC, it can be particularly useful to EXWM
users. The package is currently hosted on EmacsWiki at
https://www.emacswiki.org/emacs/FrameMove. Hope this helps.

* gnu/packages/emacs-xyz.scm (emacs-framemove): New variable.

Signed-off-by: Fabio Natali <me@fabionatali.com>
---
 gnu/packages/emacs-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 050e6377a3..720cefae18 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -128,6 +128,7 @@
 ;;; Copyright © 2023 Juliana Sims <juli@incana.org>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch>
+;;; Copyright © 2023 Fabio Natali <me@fabionatali.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32435,6 +32436,25 @@ (define-public emacs-windower
 @end itemize")
     (license license:gpl3+)))
 
+(define-public emacs-framemove
+  (package
+    (name "emacs-framemove")
+    (version "0.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri "https://www.emacswiki.org/emacs/download/framemove.el")
+       (sha256
+        (base32
+         "15fhhywr0y2bd10rp60qkdq521l8ag1is4ahjnd84hl2w0qn7gnw"))))
+    (build-system emacs-build-system)
+    (home-page "https://www.emacswiki.org/emacs/framemove.el")
+    (synopsis "Directional frame selection routines")
+    (description "@code{emacs-framemove} is similar to the @code{windmove.el}
+library, but for frames. It provides a simple set of keystrokes to move the
+input/focus between windows.")
+    (license license:gpl3)))
+
 (define-public emacs-flycheck-cpplint
   (package
     (name "emacs-flycheck-cpplint")

base-commit: 0e09e8ab1554a7dffd60101cb4e631b348e43c9c
-- 
2.39.2





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

* [bug#63370] [PATCH] gnu: Add emacs-framemove.
  2023-05-08 13:05 [bug#63370] [PATCH] gnu: Add emacs-framemove Fabio Natali
@ 2023-05-08 16:15 ` Nicolas Goaziou
  2023-05-08 19:15   ` Fabio Natali
  2023-05-08 19:07 ` Fabio Natali
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2023-05-08 16:15 UTC (permalink / raw)
  To: Fabio Natali; +Cc: 63370

Hello,

Fabio Natali <me@fabionatali.com> writes:
>
> * gnu/packages/emacs-xyz.scm (emacs-framemove): New variable.

Thank you.

> Signed-off-by: Fabio Natali <me@fabionatali.com>

In Guix, you don't sign your own commits.

> +       (uri "https://www.emacswiki.org/emacs/download/framemove.el")

This is an issue, because the URI is not stable. Please use GitHub
repository instead: <https://github.com/emacsmirror/framemove>.

> +    (description "@code{emacs-framemove} is similar to the
> @code{windmove.el}

Nicpicks: @code{emacs-framemove} -> Framemove and @code{windmove.el} -> Windmove.

Could you send an updated patch?

Regards,
-- 
Nicolas Goaziou




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

* [bug#63370] [PATCH] gnu: Add emacs-framemove.
  2023-05-08 13:05 [bug#63370] [PATCH] gnu: Add emacs-framemove Fabio Natali
  2023-05-08 16:15 ` Nicolas Goaziou
@ 2023-05-08 19:07 ` Fabio Natali
  2023-05-11 21:59   ` bug#63370: " Nicolas Goaziou
  1 sibling, 1 reply; 6+ messages in thread
From: Fabio Natali @ 2023-05-08 19:07 UTC (permalink / raw)
  To: 63370; +Cc: Fabio Natali

Updated patch, as per Nicolas' suggestions (hopefully I got everything right).

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 050e6377a3..45c47fc5f5 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -128,6 +128,7 @@
 ;;; Copyright © 2023 Juliana Sims <juli@incana.org>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch>
+;;; Copyright © 2023 Fabio Natali <me@fabionatali.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32435,6 +32436,30 @@ (define-public emacs-windower
 @end itemize")
     (license license:gpl3+)))
 
+(define-public emacs-framemove
+  ;; Use the latest commit, as there are no tagged releases.
+  (let ((commit "0faa8a4937f398e4971fc877b1c294100506b645")
+        (revision "0"))
+    (package
+      (name "emacs-framemove")
+      (version (git-version "0.10" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/emacsmirror/framemove")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1z4xqx1cvllil03pdwsybsj5v9w7ggdrak1kxa856ki5mj1ja3gl"))))
+      (build-system emacs-build-system)
+      (home-page "https://www.emacswiki.org/emacs/framemove.el")
+      (synopsis "Directional frame selection routines")
+      (description "Framemove is similar to the Windmove library, but for
+frames. It provides a simple set of keystrokes to move the input/focus between
+windows.")
+      (license license:gpl3))))
+
 (define-public emacs-flycheck-cpplint
   (package
     (name "emacs-flycheck-cpplint")

base-commit: 0e09e8ab1554a7dffd60101cb4e631b348e43c9c
-- 
2.39.2





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

* [bug#63370] [PATCH] gnu: Add emacs-framemove.
  2023-05-08 16:15 ` Nicolas Goaziou
@ 2023-05-08 19:15   ` Fabio Natali
  2023-05-10  8:00     ` Fabio Natali
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Natali @ 2023-05-08 19:15 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 63370

Hey Nicolas, thanks for getting back to me so quickly. An updated
version of the patch should be arriving in a minute.

On 2023-05-08, 18:15 +0200, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> In Guix, you don't sign your own commits.

Ooops, sorry. Fixed in the new patch.

>> +       (uri "https://www.emacswiki.org/emacs/download/framemove.el")
>
> This is an issue, because the URI is not stable. Please use GitHub
> repository instead: <https://github.com/emacsmirror/framemove>.

Fixed.

>> +    (description "@code{emacs-framemove} is similar to the
>> @code{windmove.el}
>
> Nicpicks: @code{emacs-framemove} -> Framemove and @code{windmove.el} -> Windmove.

This is also fixed.

Thanks Nicolas, should you spot anything else, I'm very glad to keep
working on it.

Cheers, Fabio.




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

* [bug#63370] [PATCH] gnu: Add emacs-framemove.
  2023-05-08 19:15   ` Fabio Natali
@ 2023-05-10  8:00     ` Fabio Natali
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio Natali @ 2023-05-10  8:00 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 63370

On 2023-05-08, 20:15 +0100, Fabio Natali <me@fabionatali.com> wrote:
> Hey Nicolas, thanks for getting back to me so quickly. An updated
> version of the patch should be arriving in a minute.

(Just to clarify, the patch ended up arriving a bit earlier than my
above comment, it's here: https://issues.guix.gnu.org/63370#2.)




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

* bug#63370: [PATCH] gnu: Add emacs-framemove.
  2023-05-08 19:07 ` Fabio Natali
@ 2023-05-11 21:59   ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2023-05-11 21:59 UTC (permalink / raw)
  To: Fabio Natali; +Cc: 63370-done

Hello,

Fabio Natali <me@fabionatali.com> writes:

> * gnu/packages/emacs-xyz.scm (emacs-framemove): New variable.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2023-05-11 22:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 13:05 [bug#63370] [PATCH] gnu: Add emacs-framemove Fabio Natali
2023-05-08 16:15 ` Nicolas Goaziou
2023-05-08 19:15   ` Fabio Natali
2023-05-10  8:00     ` Fabio Natali
2023-05-08 19:07 ` Fabio Natali
2023-05-11 21:59   ` bug#63370: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).