Message ID | 20220205112019.31624-1-db@minikn.xyz |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BD6D427BBEA; Sat, 5 Feb 2022 11:22:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 887F427BBE9 for <patchwork@mira.cbaines.net>; Sat, 5 Feb 2022 11:22:02 +0000 (GMT) Received: from localhost ([::1]:33254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nGJ8j-0002JW-LQ for patchwork@mira.cbaines.net; Sat, 05 Feb 2022 06:22:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nGJ7o-00027F-Ql for guix-patches@gnu.org; Sat, 05 Feb 2022 06:21:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nGJ7m-0001tT-Eh for guix-patches@gnu.org; Sat, 05 Feb 2022 06:21:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nGJ7m-00058i-Bs for guix-patches@gnu.org; Sat, 05 Feb 2022 06:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53797] [PATCH] gnu: Add emacs-app-launcher. Resent-From: Demis Balbach <db@minikn.xyz> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Feb 2022 11:21:02 +0000 Resent-Message-ID: <handler.53797.B.164406004719712@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53797 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53797@debbugs.gnu.org Cc: Demis Balbach <db@minikn.xyz> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164406004719712 (code B ref -1); Sat, 05 Feb 2022 11:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Feb 2022 11:20:47 +0000 Received: from localhost ([127.0.0.1]:33897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nGJ7X-00057s-GM for submit@debbugs.gnu.org; Sat, 05 Feb 2022 06:20:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:33996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <db@minikn.xyz>) id 1nGJ7V-00057k-6i for submit@debbugs.gnu.org; Sat, 05 Feb 2022 06:20:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <db@minikn.xyz>) id 1nGJ7T-0001Jr-9C for guix-patches@gnu.org; Sat, 05 Feb 2022 06:20:43 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:58398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <db@minikn.xyz>) id 1nGJ7Q-0001kU-83 for guix-patches@gnu.org; Sat, 05 Feb 2022 06:20:42 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4JrVM45NFjz9sQD; Sat, 5 Feb 2022 12:20:32 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=minikn.xyz; s=MBO0001; t=1644060030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nLOqOFC0W5w3wB1oC3YbijkSSMW3ECCVDwn/bah3zvA=; b=wuD4PhP1gb7+9yoVw2IWc2Xpbg2awrPopQuZqadagnxVshDQOrQW7mSdJ+RHpdTCdLKzc2 VEYfqKfqLsEXocibca32IFq67Imh+5f9rr3MPQHAJbx9CWkDo4FxyPbTsXDc6Gt70CLPlS Ev+LFWJJ3VdduQd8eVjJYFlorW3hJRBT8kA6zG6ldsx0k92xXLROmtJrcZCpQIR9uCyx4F cKgfgC2UNLtbdhTlQuPWyqXuGRoMWWpN2EX4KS30N+rlJWQ0Fae46iAddGxaAQfs86y18J wykg/p310cmlyyd99vT6vj22Hw4tpedeM0SXI0DOQnwdfk0RYTu525yEKmFdeg== From: Demis Balbach <db@minikn.xyz> Date: Sat, 5 Feb 2022 12:20:19 +0100 Message-Id: <20220205112019.31624-1-db@minikn.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=80.241.56.171; envelope-from=db@minikn.xyz; helo=mout-p-201.mailbox.org X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.997, PDS_OTHER_BAD_TLD=1.625, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#53797] gnu: Add emacs-app-launcher.
|
|
Commit Message
Demis Balbach
Feb. 5, 2022, 11:20 a.m. UTC
--- gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
Comments
Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: > + "app-launcher defines the app-launcher-run-app command which uses Emacs > +standard completion feature to select an application installed on your machine > +and launch it.") What does ‘launching’ mean here? Is ‘launching an application’ functionally the same as running it (with 'fork'+'exec' or 'system' or whatever)? Does it have extra bells and whistles? It's a super vague word, e.g. when Xiden has been announced on guix- devel, one of the words that kept being repeated was 'launcher', but it wasn't defined anywhere in its practically empty manual. (Nowadays there's actually a manual and it does define launchers, but it didn't use to.) Greetings, Maxime.
Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: > + (let ((commit "80a9ed37892ee6e21fe44487ed11f66a15e3f440") > + (revision "1") > + (version "0.1")) It's the first version in Guix, so revision should be "0." Also, version "0.1" seems to be incorrect here, since there aren't any releases at all. So I'd start at "0.0". I could be wrong, but I don't think that the auto-updater (guix refresh -u) understands let-bound versions (let-bound commits and revisions are ok though), and you're only using the 'version' variable in a single place, so I'd move it to the 'version' field of the package record. Greetings, Maxime.
Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]:
> + "Use Emacs an app launcher")
Seems ingrammatical, "Use Emacs as an app launcher" would be better
though still rather vague.
Greetings,
Maxime.
Maxime Devos schreef op za 05-02-2022 om 13:12 [+0100]: > It's the first version in Guix, so revision should be "0." > Also, version "0.1" seems to be incorrect here, since there > aren't any releases at all. So I'd start at "0.0". Nevermind, I now see 'app-launcher.el' says Version: 0.1.
Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]:
> +(define-public emacs-app-launcher
app-launcher.el has (require 'xdg) (require 'cl-seq),
are these built-in to Emacs or do they need to be added to propagated-
inputs?
Greetings,
Maxime.
Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]:
> +(define-public emacs-app-launcher
app-launcher.el says it includes code from the Counsel package by Oleh
Krehel and the counsel source files have "Copyright (C) YEARS Foo"
lines, but app-launcher.el doesn't have those.
IIRC, the GPL has a clause that says you need to preserve copyright
lines, so this looks like a violation of the license to me. Can they
be re-added upstream?
Greetings,
Maxime.
On 2022-02-05 13:05, Maxime Devos wrote: > Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: >> + "app-launcher defines the app-launcher-run-app command which uses Emacs >> +standard completion feature to select an application installed on your machine >> +and launch it.") > > What does ‘launching’ mean here? Is ‘launching an application’ > functionally the same as running it (with 'fork'+'exec' or 'system' or > whatever)? Does it have extra bells and whistles? > > It's a super vague word, e.g. when Xiden has been announced on guix- > devel, one of the words that kept being repeated was 'launcher', but it > wasn't defined anywhere in its practically empty manual. (Nowadays > there's actually a manual and it does define launchers, but it didn't > use to.) > > Greetings, > Maxime. Hello. I don't know if that's what you wanted to hear but technically, the script is a big wrapper around `call-process-shell-command'. `app-launcher--action-function' can be set to whatever function to execute on the selected candidate, by default this is set to `app-launcher--action-function-default' which ultimately runs `call-process-shell-command'. See: https://github.com/SebastienWae/app-launcher/blob/main/app-launcher.el#L167 Is this enough information?
On 2022-02-05 13:13, Maxime Devos wrote: > Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: >> + "Use Emacs an app launcher") > > Seems ingrammatical, "Use Emacs as an app launcher" would be better > though still rather vague. > > Greetings, > Maxime. > This is indeed a mistake. But please, if you have a better synopsis/description in mind - share it. I'm always bad at these things. Especially since the package itself doesn't provide a whole lot of documentation since it's so simple.
On 2022-02-05 13:16, Maxime Devos wrote: > Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: >> +(define-public emacs-app-launcher > > app-launcher.el has (require 'xdg) (require 'cl-seq), > are these built-in to Emacs or do they need to be added to propagated- > inputs? > > Greetings, > Maxime. > I think they are built into emacs. I had no trouble with the package definition.
On 2022-02-05 13:20, Maxime Devos wrote: > Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: >> +(define-public emacs-app-launcher > > app-launcher.el says it includes code from the Counsel package by Oleh > Krehel and the counsel source files have "Copyright (C) YEARS Foo" > lines, but app-launcher.el doesn't have those. > > IIRC, the GPL has a clause that says you need to preserve copyright > lines, so this looks like a violation of the license to me. Can they > be re-added upstream? > > Greetings, > Maxime. I don't know if that's a violation sorry. Regarding adding it upstream. I don't think so. At least judging by the activity of the maintainer. See here: https://github.com/SebastienWae/app-launcher/issues There are open issues starting a year ago and the author hasn't replied to any of them. But I could try my luck and contact them to add the copyright notices.
Demis Balbach schreef op zo 06-02-2022 om 11:58 [+0100]: > > Demis Balbach schreef op za 05-02-2022 om 12:20 [+0100]: > > > + "Use Emacs an app launcher") > > > > Seems ingrammatical, "Use Emacs as an app launcher" would be better > > though still rather vague. > > > > Greetings, > > Maxime. > > > > This is indeed a mistake. But please, if you have a better > synopsis/description in mind - share it. I'm always bad at these > things. Especially since the package itself doesn't provide a whole > lot > of documentation since it's so simple. I'm also bad at descriptions and synopses. How about (synopsis "Start applications from Emacs") (description "This package allows starting applications from within Emacs with the @lisp{app-launcher-run-app} command. It supports autocompletion. It cannot be used to start arbitrary software; it assumes that the application has a .desktop file. This is the case for most, but certainly not all, graphical software.") ? ‘Application’ in the synopsis is not really specific, but the description explains what counts as ‘application’ to emacs-app- launcher. Greetings, Maxime
Demis Balbach schreef op zo 06-02-2022 om 11:59 [+0100]: > I think they are built into emacs. I had no trouble with the package > definition. OK.
Demis Balbach schreef op zo 06-02-2022 om 12:01 [+0100]: > I don't know if that's a violation sorry. Regarding adding it > upstream. I don't think so. At least judging by the activity of the > maintainer. See here: > https://github.com/SebastienWae/app-launcher/issues > > There are open issues starting a year ago and the author hasn't > replied > to any of them. But I could try my luck and contact them to add the > copyright notices. IANAL but it's such a minor and technical violation (the app- launcher.el even acknowledges Oleh Krehel, it just didn't say Copyright YEAR Oleh Krehel (or Copyright YEAR FSF, since it looks like Counsel has some copyright assignement to the FSF going on)) that I would consider making a token effort to correct it upstream sufficient. If not, it could be patched (with an origin snippet or a patch) in Guix. Greetings, Maxime.
On 2022-02-05, Demis Balbach wrote:
> +(define-public emacs-app-launcher
This was added in commit:
90174c77cf59fd9681eb7442a92015cd61c8495d gnu: Add emacs-app-launcher.
Marking as done.
live well,
vagrant
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 444b761116..4ce7525dee 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -2615,6 +2615,33 @@ (define-public emacs-async as a library for other Emacs packages.") (license license:gpl3+))) +(define-public emacs-app-launcher + (let ((commit "80a9ed37892ee6e21fe44487ed11f66a15e3f440") + (revision "1") + (version "0.1")) + (package + (name "emacs-app-launcher") + (version (git-version version revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/SebastienWae/app-launcher") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ywhfx8604ifmvcy2397bmvq2wj03jyqnm0g7lmqqi5p97rjbdgc")))) + (build-system emacs-build-system) + (home-page "https://github.com/SebastienWae/app-launcher") + (synopsis + "Use Emacs an app launcher") + (description + "app-launcher defines the app-launcher-run-app command which uses Emacs +standard completion feature to select an application installed on your machine +and launch it.") + (license license:gpl3+)))) + (define-public emacs-auctex (package (name "emacs-auctex")