GNU bug report logs - #59930
[PATCH] gnu: Add emacs-islisp-mode

Previous Next

Package: guix-patches;

Reported by: Joeke de Graaf <joeke <at> posteo.net>

Date: Fri, 9 Dec 2022 21:02:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


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

From: Joeke de Graaf <joeke <at> posteo.net>
To: 59930 <at> debbugs.gnu.org
Subject: Re: [bug#59930] [PATCH] gnu: Add emacs-islisp-mode
Date: Fri, 16 Dec 2022 13:14:47 +0000
[Message part 1 (text/plain, inline)]
  > You can use (elpa-directory #$output) instead of (string-append ...)

  Thanks, I did not know about elpa-directory.

  > You can use for-each instead of map since you don't need the return
  > value. Moreover, `copy-recursively' is probably shorter.
  >
  > However, this will catch neither the ".el" file nor the ".lsp" file 
in
  > "implementations/easy-islisp" directory. What should we do about the
  > latter ?

  It seems Emacs has a hard time finding easy-islisp.el when using
  copy-recursively, since it's put inside a directory. The easy solution
  would be to 'expand' the regex in find-files like this:

  (lambda _
    (let ((site-lisp-dir (elpa-directory #$output)))
      (for-each (lambda (dir)
		  (copy-recursively dir elpa-directory)
		  (with-directory-excursion dir
		    (for-each (lambda (file)
				(install-file file
					      site-lisp-dir))
			      (find-files "." "\\.(lsp|el)$"))))
		'("advance" "implementations"))))

  Are there any objections to doing it this way? (Other than it being a
  lot less pretty than a call to copy-recursively 😄)

  > You also need to add `eisl' as an input,
  > and patch "easy-islisp.el"
  > accordingly (see `easy-islisp-executable').

  I incorporated this in the new patch.

  I have attached an updated version below.

  Thanks for reviewing!
[0001-gnu-Add-emacs-islisp-mode.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 213 days ago.

Previous Next


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