Subject: [bug#77836] [PATCH emacs-team v2] gnu: emacs-ws-butler: Update to 1.3.

From: Liliana Marie Prikler <[email-masked]>
Date: Mon, 21 Apr 2025 14:07:56 +0200

Am Donnerstag, dem 17.04.2025 um 23:03 +0200 schrieb Cayetano Santos:
> * gnu/packages/emacs-xyz.scm (emacs-ws-butler): Update to 1.3.
> 
> Change-Id: I5e50106efc32057f91bceff1a0b8fbbd2b1d7ef6
> ---
> 
> [source]: Switch to git-fetch, as "tests" folder is absent from tar
> file.
> 
> Note that upstream github.com/lewang/ws-butler repository is obsolete
> since 0.7.
> 
>  gnu/packages/emacs-xyz.scm | 38 ++++++++++++++++++++++--------------
> --
>  1 file changed, 22 insertions(+), 16 deletions(-)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 320046063c..1d194a9993 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -23125,24 +23125,30 @@ (define-public emacs-hercules
>      (license license:gpl3+)))
>  
>  (define-public emacs-ws-butler
> -  (package
> -    (name "emacs-ws-butler")
> -    (version "1.1")
> -    (source
> -     (origin
> -       (method url-fetch)
> -       (uri (string-append
> "https://elpa.nongnu.org/nongnu/ws-butler-" version
> -                           ".tar"))
> -       (sha256
> -        (base32
> "1vy7g2ryg1drcz9zpn011d36zcd9a5b5yny5hwpjrllqj5dg73jx"))))
> -    (build-system emacs-build-system)
> -    (home-page "https://elpa.nongnu.org/nongnu/ws-butler.html")
> -    (synopsis "Unobtrusively remove trailing whitespace")
> -    (description
> -     "ws-butler automatically trims trailing whitespace characters
> on save.
> +  (let ((commit "9ee5a7657a22e836618813c2e2b64a548d27d2ff"))
> +    (package
> +      (name "emacs-ws-butler")
> +      (version "1.3")
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://git.savannah.gnu.org/git/emacs/nongnu")
> +               (commit commit)))
If this is a tagged commit, you may want to use the tag instead. 
Otherwise, use git-version.
> +         (file-name (git-file-name name version))
> +         (sha256
> +          (base32
> "0ivpgib2bxv7x6cp04mj8crc1a60d7c77jcc59sj14scq4jqbmjb"))))
> +      (build-system emacs-build-system)
> +      (arguments (list #:test-command
> +                       #~(list "emacs" "--batch" "-L" "."
> +                               "-l" "tests/run-test.el")))
> +      (home-page "https://elpa.nongnu.org/nongnu/ws-butler.html")
> +      (synopsis "Unobtrusively remove trailing whitespace")
> +      (description
> +       "ws-butler automatically trims trailing whitespace characters
> on save.
>  In contrast with other whitespace cleanup solutions, only modified
> lines are
>  trimmed.")
> -    (license license:gpl3+)))
> +      (license license:gpl3+))))
>  
>  (define-public emacs-opencl-mode
>    (package
> 
> base-commit: 871a5af3e02e8eb567055f5208ca39693e7114f1
> --
> 2.49.0

Cheers