all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#44738] Add Emacs for Wayland
@ 2020-11-19 14:46 Andrew Tropin
  2020-11-23 10:13 ` [bug#44738] [PATCH] gnu: Add emacs-next-pgtk Andrew Tropin
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Tropin @ 2020-11-19 14:46 UTC (permalink / raw)
  To: 44738

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

Add a package for Emacs fork, which uses pure-gtk3.
https://github.com/masm11/emacs/

It works natively with Wayland, but also works for X11.

Tested on sway and i3.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: 0001-gnu-Add-emacs-next-pgtk.patch --]
[-- Type: text/x-patch, Size: 2000 bytes --]

From 16af8a60f7f684a364dc1105ad00ac7f4cfc26da Mon Sep 17 00:00:00 2001
From: Andrew Tropin <andrew@trop.in>
Date: Thu, 19 Nov 2020 17:36:11 +0300
Subject: [PATCH] gnu: Add emacs-next-pgtk

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

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 4f5a67093c..52a02bca34 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -313,6 +313,38 @@ languages.")
               (variable "INFOPATH")
               (files '("share/info"))))))))
 
+(define-public emacs-next-pgtk
+  (let ((commit "896ac63a25dd072402fea866b42efc4277546cb8")
+        (revision "0"))
+    (package/inherit emacs-next
+      (name "emacs-next-pgtk")
+      (synopsis "The fork of extensible, customizable,
+self-documenting text editor (with pgtk toolkit and xwidgets
+support)")
+      (description "This is an unofficial Emacs fork build with
+pure-gtk to work natively on Wayland. In addition to that xwidgets
+also enabled and work without glitches even on X server.")
+      (version (git-version "28.0.50" revision commit))
+      (source
+       (origin
+	 (method git-fetch)
+	 (uri (git-reference
+	       (url "https://github.com/masm11/emacs")
+	       (commit commit)))
+	 (sha256
+          (base32
+           "0j11sjmhlb550fgqnjrrbqlqwf65n16g5666y0z2pky1xz5xzg5i"))))
+      (arguments
+       (substitute-keyword-arguments
+	   (package-arguments emacs-next)
+	 ((#:configure-flags flags ''())
+	  `(cons* "--with-pgtk" "--with-xwidgets" ,flags))))
+      (propagated-inputs `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+			   ("glib-networking" ,glib-networking)))
+      (inputs
+       `(("webkitgtk" ,webkitgtk)
+	 ,@(package-inputs emacs-next))))))
+
 (define-public emacs-minimal
   ;; This is the version that you should use as an input to packages that just
   ;; need to byte-compile .el files.
-- 
2.25.4


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

* [bug#44738] [PATCH] gnu: Add emacs-next-pgtk
  2020-11-19 14:46 [bug#44738] Add Emacs for Wayland Andrew Tropin
@ 2020-11-23 10:13 ` Andrew Tropin
  2020-11-26 22:13   ` bug#44738: " Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Tropin @ 2020-11-23 10:13 UTC (permalink / raw)
  To: 44738

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

Updated the revision, also changed home-page to fork's sources.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: 0001-gnu-Add-emacs-next-pgtk.patch --]
[-- Type: text/x-patch, Size: 2057 bytes --]

From 168310a375b13081b73ad6ddeb26100bc7bcb61c Mon Sep 17 00:00:00 2001
From: Andrew Tropin <andrew@trop.in>
Date: Thu, 19 Nov 2020 17:36:11 +0300
Subject: [PATCH] gnu: Add emacs-next-pgtk

* gnu/packages/emacs.scm (emacs-next-pgtk): New variable.
---
 gnu/packages/emacs.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 4f5a67093c..957338af5d 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -313,6 +313,40 @@ languages.")
               (variable "INFOPATH")
               (files '("share/info"))))))))
 
+(define-public emacs-next-pgtk
+  (let ((commit "3df4ca451d41a5f1036713277ef55ca9734c6fa7")
+        (revision "0"))
+    (package/inherit emacs-next
+      (name "emacs-next-pgtk")
+      (version (git-version "28.0.50" revision commit))
+      (source
+       (origin
+	 (method git-fetch)
+	 (uri (git-reference
+	       (url "https://github.com/masm11/emacs")
+	       (commit commit)))
+	 (sha256
+          (base32
+           "1c677c97b9avhlzysg09cvf6bd69iz41ggppnszw8chhphk3knfc"))))
+      (arguments
+       (substitute-keyword-arguments
+	   (package-arguments emacs-next)
+	 ((#:configure-flags flags ''())
+	  `(cons* "--with-pgtk" "--with-xwidgets" ,flags))))
+      (propagated-inputs `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+			   ("glib-networking" ,glib-networking)))
+      (inputs
+       `(("webkitgtk" ,webkitgtk)
+	 ,@(package-inputs emacs-next)))
+
+      (home-page "https://github.com/masm11/emacs")
+      (synopsis "The fork of extensible, customizable,
+self-documenting text editor (with pgtk toolkit and xwidgets
+support)")
+      (description "This is an unofficial Emacs fork build with
+pure-gtk to work natively on Wayland. In addition to that xwidgets
+also enabled and work without glitches even on X server."))))
+
 (define-public emacs-minimal
   ;; This is the version that you should use as an input to packages that just
   ;; need to byte-compile .el files.
-- 
2.25.4


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

* bug#44738: [PATCH] gnu: Add emacs-next-pgtk
  2020-11-23 10:13 ` [bug#44738] [PATCH] gnu: Add emacs-next-pgtk Andrew Tropin
@ 2020-11-26 22:13   ` Ludovic Courtès
  2020-11-27  7:12     ` [bug#44738] " Andrew Tropin
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2020-11-26 22:13 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 44738-done

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

Hi Andrew,

Andrew Tropin <andrew@trop.in> skribis:

> From 168310a375b13081b73ad6ddeb26100bc7bcb61c Mon Sep 17 00:00:00 2001
> From: Andrew Tropin <andrew@trop.in>
> Date: Thu, 19 Nov 2020 17:36:11 +0300
> Subject: [PATCH] gnu: Add emacs-next-pgtk
>
> * gnu/packages/emacs.scm (emacs-next-pgtk): New variable.

As a welcome gift ;-), I applied the following cosmetic changes for you,
most of which were suggested by ‘guix lint’.

Thanks!

Ludo’.


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

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 957338af5d..6fb323deaf 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -321,31 +321,29 @@ languages.")
       (version (git-version "28.0.50" revision commit))
       (source
        (origin
-	 (method git-fetch)
-	 (uri (git-reference
-	       (url "https://github.com/masm11/emacs")
-	       (commit commit)))
-	 (sha256
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/masm11/emacs")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
           (base32
            "1c677c97b9avhlzysg09cvf6bd69iz41ggppnszw8chhphk3knfc"))))
       (arguments
-       (substitute-keyword-arguments
-	   (package-arguments emacs-next)
-	 ((#:configure-flags flags ''())
-	  `(cons* "--with-pgtk" "--with-xwidgets" ,flags))))
-      (propagated-inputs `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
-			   ("glib-networking" ,glib-networking)))
+       (substitute-keyword-arguments (package-arguments emacs-next)
+         ((#:configure-flags flags ''())
+          `(cons* "--with-pgtk" "--with-xwidgets" ,flags))))
+      (propagated-inputs
+       `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+         ("glib-networking" ,glib-networking)))
       (inputs
        `(("webkitgtk" ,webkitgtk)
-	 ,@(package-inputs emacs-next)))
-
+         ,@(package-inputs emacs-next)))
       (home-page "https://github.com/masm11/emacs")
-      (synopsis "The fork of extensible, customizable,
-self-documenting text editor (with pgtk toolkit and xwidgets
-support)")
-      (description "This is an unofficial Emacs fork build with
-pure-gtk to work natively on Wayland. In addition to that xwidgets
-also enabled and work without glitches even on X server."))))
+      (synopsis "Emacs text editor with @code{pgtk} and @code{xwidgets} support")
+      (description "This is an unofficial Emacs fork build with a pure-GTK
+graphical toolkit to work natively on Wayland.  In addition to that, xwidgets
+also enabled and works without glitches even on X server."))))
 
 (define-public emacs-minimal
   ;; This is the version that you should use as an input to packages that just

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

* [bug#44738] [PATCH] gnu: Add emacs-next-pgtk
  2020-11-26 22:13   ` bug#44738: " Ludovic Courtès
@ 2020-11-27  7:12     ` Andrew Tropin
  2020-11-27  9:59       ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Tropin @ 2020-11-27  7:12 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 44738-done

Thanks a lot for improvements and for applying the patch too!

Will setup guix dev environment next week and will start using lint)

On Fri, Nov 27, 2020 at 1:13 AM Ludovic Courtès <ludo@gnu.org> wrote:
>
> Hi Andrew,
>
> Andrew Tropin <andrew@trop.in> skribis:
>
> > From 168310a375b13081b73ad6ddeb26100bc7bcb61c Mon Sep 17 00:00:00 2001
> > From: Andrew Tropin <andrew@trop.in>
> > Date: Thu, 19 Nov 2020 17:36:11 +0300
> > Subject: [PATCH] gnu: Add emacs-next-pgtk
> >
> > * gnu/packages/emacs.scm (emacs-next-pgtk): New variable.
>
> As a welcome gift ;-), I applied the following cosmetic changes for you,
> most of which were suggested by ‘guix lint’.
>
> Thanks!
>
> Ludo’.
>


-- 
Best regards,
Andrew Tropin




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

* [bug#44738] [PATCH] gnu: Add emacs-next-pgtk
  2020-11-27  7:12     ` [bug#44738] " Andrew Tropin
@ 2020-11-27  9:59       ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2020-11-27  9:59 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 44738-done

Andrew Tropin <andrew@trop.in> skribis:

> Thanks a lot for improvements and for applying the patch too!
>
> Will setup guix dev environment next week and will start using lint)

Awesome.  You can also take a look at the check list at
<https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html>.

Thanks,
Ludo’.




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

end of thread, other threads:[~2020-11-27 10:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-19 14:46 [bug#44738] Add Emacs for Wayland Andrew Tropin
2020-11-23 10:13 ` [bug#44738] [PATCH] gnu: Add emacs-next-pgtk Andrew Tropin
2020-11-26 22:13   ` bug#44738: " Ludovic Courtès
2020-11-27  7:12     ` [bug#44738] " Andrew Tropin
2020-11-27  9:59       ` 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.