unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59186] [PATCH] gnu: Add emacs-free-keys.
@ 2022-11-10 23:15 jgart via Guix-patches via
  2022-11-11 10:45 ` Nicolas Goaziou
  2022-11-11 13:07 ` [bug#59186] [PATCH v2] " jgart via Guix-patches via
  0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-11-10 23:15 UTC (permalink / raw)
  To: 59186; +Cc: jgart

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c0faf221d6..aaa6e7d0e4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33866,6 +33866,28 @@ (define-public emacs-vertico-posframe
 a vertical completion UI.")
     (license license:gpl3+)))
 
+(define-public emacs-free-keys
+  (package
+    (name "emacs-free-keys")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/Fuco1/free-keys")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0xgifa7s9n882f9ymyyz9gc11xfbj3vfpnxiq1fqfm5hmwx9pwbc"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/Fuco1/free-keys")
+    (synopsis "Show free keybindings for modkeys or prefixes")
+    (description
+"@code{emacs-free-keys} shows available key bindings in the current
+buffer.")
+    (license license:gpl3+)))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 
2.38.1





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

* [bug#59186] [PATCH] gnu: Add emacs-free-keys.
  2022-11-10 23:15 [bug#59186] [PATCH] gnu: Add emacs-free-keys jgart via Guix-patches via
@ 2022-11-11 10:45 ` Nicolas Goaziou
  2022-11-11 13:07 ` [bug#59186] [PATCH v2] " jgart via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-11-11 10:45 UTC (permalink / raw)
  To: 59186; +Cc: jgart

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

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

Thank you.

> +    (description
> +"@code{emacs-free-keys} shows available key bindings in the current
> +buffer.")

Could you please use @code{free-keys} or (better, IMO) Free Keys instead
of @code{emacs-free-keys}, for a reason given a couple of times in the
past already?

Regards,
-- 
Nicolas Goaziou




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

* [bug#59186] [PATCH v2] gnu: Add emacs-free-keys.
  2022-11-10 23:15 [bug#59186] [PATCH] gnu: Add emacs-free-keys jgart via Guix-patches via
  2022-11-11 10:45 ` Nicolas Goaziou
@ 2022-11-11 13:07 ` jgart via Guix-patches via
  2022-11-12 10:46   ` bug#59186: " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-11-11 13:07 UTC (permalink / raw)
  To: 59186; +Cc: jgart, Nicolas Goaziou

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

Hi Nicolas,

Sorry about that. Here is v2 with the texinfo markup updated.

Is what you're saying that @code markup should never be used to reference
guix code?

all best,

jgart
---
 gnu/packages/emacs-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c0faf221d6..b2cf31d3d9 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33866,6 +33866,28 @@ (define-public emacs-vertico-posframe
 a vertical completion UI.")
     (license license:gpl3+)))
 
+(define-public emacs-free-keys
+  (package
+    (name "emacs-free-keys")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/Fuco1/free-keys")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0xgifa7s9n882f9ymyyz9gc11xfbj3vfpnxiq1fqfm5hmwx9pwbc"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/Fuco1/free-keys")
+    (synopsis "Show free keybindings for modkeys or prefixes")
+    (description
+"@code{free-keys} shows available key bindings in the current
+buffer.")
+    (license license:gpl3+)))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 
2.38.1





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

* bug#59186: [PATCH v2] gnu: Add emacs-free-keys.
  2022-11-11 13:07 ` [bug#59186] [PATCH v2] " jgart via Guix-patches via
@ 2022-11-12 10:46   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-11-12 10:46 UTC (permalink / raw)
  To: jgart via Guix-patches via; +Cc: 59186-done, jgart

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/emacs-xyz.scm (emacs-free-keys): New variable.
>
> Sorry about that. Here is v2 with the texinfo markup updated.

Thank you. I moved the package definition outside the end of the file,
changed @code{free-keys} into Free-keys (sorry, I couldn't help) and
applied it.

> Is what you're saying that @code markup should never be used to reference
> guix code?

No, it isn't.

I'm saying that we should not mix the Guix variable name (here
`emacs-free-keys') and the name of the project (here `free-keys'). The
description is more about the project than the Guix variable. Therefore,
we should reference the former, not the latter. As a consequence,
@code{free-keys} is better than @code{emacs-free-keys} because we're not
referencing Guix code.

Also, on a more personal POV, I think we're using emphasis too much in
descriptions as it hinders readability. In particular, @code markup
should really be reserved to symbols (variables, functions…) rather than
project names. Capitalization is much more elegant in this case.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2022-11-12 10:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-10 23:15 [bug#59186] [PATCH] gnu: Add emacs-free-keys jgart via Guix-patches via
2022-11-11 10:45 ` Nicolas Goaziou
2022-11-11 13:07 ` [bug#59186] [PATCH v2] " jgart via Guix-patches via
2022-11-12 10:46   ` bug#59186: " 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).