Subject: Re: [bug#78044] [PATCH 1/2] gnu: Add emacs-vline.

From: Liliana Marie Prikler <[email-masked]>
Date: Thu, 24 Apr 2025 19:00:17 +0200

Am Donnerstag, dem 24.04.2025 um 17:49 +0200 schrieb Rostislav Svoboda:
> * gnu/packages/emacs-xyz.scm (emacs-vline): New variable.
> 
> Change-Id: Iaf27b7aefa3f4cadf8722069fe1b6f9446588dca
> ---
>  gnu/packages/emacs-xyz.scm | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index ca21a1a5f1..570d5835a7 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -17167,6 +17167,27 @@ (define-public emacs-indent-bars
>  Optional Treesitter support is also available.")
>      (license license:gpl3+)))
>  
> +(define-public emacs-vline
> +  (package
> +    (name "emacs-vline")
> +    (version "20210805.1528")
Use git-version with the base version taken from the Version: field.
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/buzztaiki/vline.git")
> +             (commit "f5d7b5743dceca75b81c8c95287cd5b0341debf9")))
Use a let-bound commit.
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> "06qqpjaxsacslxb3f2bm790lwygbq6387n9ccn4v9vz9xlyn9dmi"))))
> +    (build-system emacs-build-system)
For future-proofing, this should have (arguments (list #:tests? #f))
with the explanation that there are no tests.  Same for 2/2.
> +    (home-page "https://www.emacswiki.org/emacs/VlineMode")
> +    (synopsis "Column highlighting (vertical line displaying) mode")
> +    (description
> +     "`vline-mode is a minor mode for highlighting column at cursor
> position.  It
> +enhances text editing by visually indicating the vertical line.")
> +    (license license:gpl3+)))
> +
>  (define-public emacs-ryo-modal
>    ;; Package has no release.  Version is extracted from "Version:"
> keyword in
>    ;; main file.
Cheers

PS: maybe you want to make do with fewer prerequisites ;)