GNU bug report logs - #66562
[PATCH] gnu: emacs-haskell-snippets: Fix haskell-snippets-dir value.

Previous Next

Package: guix-patches;

Reported by: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>

Date: Sun, 15 Oct 2023 15:19:02 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 66562 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>, 66562 <at> debbugs.gnu.org
Cc: Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>,
 Andrew Tropin <andrew <at> trop.in>
Subject: Re: [bug#66562] [PATCH] gnu: emacs-haskell-snippets: Fix
 haskell-snippets-dir value.
Date: Sun, 15 Oct 2023 18:01:41 +0200
Am Sonntag, dem 15.10.2023 um 17:17 +0200 schrieb Rostislav Svoboda:
> * gnu/packages/emacs-xyz.scm (emacs-haskell-snippets): Fix
> haskell-snippets-dir value
> 
> The value of haskell-snippets-dir was:
>   /gnu/store/*-emacs-haskell-snippets-*/share/emacs/site-
> lisp/haskell-snippets-*/
> It needs to be:
>   /gnu/store/*-emacs-haskell-snippets-*/share/emacs/site-lisp/
> 
> The error was (abbreviated):
> No such file or directory, /gnu/store/*-emacs-haskell-snippets-
> */share/emacs/site-lisp/haskell-snippets-*/snippets
Explanations go above the ChangeLog.
> ---
>  gnu/packages/emacs-xyz.scm | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index bb8c25f9b5..8bb0d6d43a 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -35545,6 +35545,12 @@ (define-public emacs-haskell-snippets
>         (list
>          #:phases
>          #~(modify-phases %standard-phases
> +            (add-after 'unpack 'patch-haskell-snippets-dir
> +              (lambda* (#:key outputs #:allow-other-keys)
> +                (emacs-substitute-sexps "haskell-snippets.el"
> +                  ("setq haskell-snippets-dir"
> +                   '(file-name-parent-directory
> +                     (file-name-directory load-file-name))))))
There is actually a substitute-sexps specialization for variables. 
Perhaps use that instead?

Cheers




This bug report was last modified 1 year and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.