GNU bug report logs - #39020
Lean won't work with the emacs mode

Previous Next

Package: guix-patches;

Reported by: Arvid Marx <arvid.marx <at> logicandtypes.org>

Date: Tue, 7 Jan 2020 19:07:01 UTC

Severity: normal

Done: Brett Gilio <brettg <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Arvid Marx <arvid.marx <at> logicandtypes.org>
Subject: bug#39020: closed (Re: [bug#39020] Lean won't work with the emacs
 mode)
Date: Mon, 13 Jan 2020 22:01:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#39020: Lean won't work with the emacs mode

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 39020 <at> debbugs.gnu.org.

-- 
39020: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39020
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Brett Gilio <brettg <at> gnu.org>
To: Arvid Marx <arvid.marx <at> logicandtypes.org>
Cc: 39020-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: [bug#39020] Lean won't work with the emacs mode
Date: Mon, 13 Jan 2020 16:00:03 -0600
Arvid Marx <arvid.marx <at> logicandtypes.org> writes:

> Maxim Cournoyer wrote:
>> Hello Arvid,
>> 
>> [...]
>> When writing the package definition for the Emacs Lead mode, the code
>> could be rewritten to refer to the absolute path of the
>> files/programs
>> it uses from the Lean project, by patching it with `substitute*'
>> uses,
>> for example.
>> 
>> If that is not easy to do, another idea would be to create some kind
>> of
>> overlay directory which would flatly collect all the items needed
>> then
>> refer to that (the items would be symlinked to their real location).
>> See the `union-build' procedure of the (guix build union) module of
>> Guix.
>> 
>> HTH!
>> 
>> Maxim
>
> Hello Maxim,
>
> thanks for your response! The second idea is basically what I had in
> mind, as the Lean mode seems to depend on an actual file tree. Patching
> the emacs mode however looks quite simple, as all one needed to do is
> change the definition of lean-get-executable as defined in 
> https://raw.githubusercontent.com/leanprover/lean-mode/master/lean-util.el
> . I might take a closer look and write a simple patch at some point,
> but up to that point, it appears that just using ~/.guix-profile as a
> root directory works as well, or at least doesn't raise any errors when
> type checking etc.
>
> Again, thanks for feedback!
>
> --
>
> Arvid 
>
>
>
>
>

Closing.

-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg <at> gnu.org> <brettg <at> posteo.net>

[Message part 3 (message/rfc822, inline)]
From: Arvid Marx <arvid.marx <at> logicandtypes.org>
To: guix-patches <at> gnu.org
Subject: Lean won't work with the emacs mode
Date: Tue, 07 Jan 2020 19:53:49 +0100
The emacs mode for Lean (which doesn't appear to be packaged yet, but
of course works via MELPA etc.) expects some sort of root directory for
Lean, which is not given simply because binaries and other files are
put into separate directories. This of course makes Lean impossible to
use as intended. However, I'm not quite sure how this would be fixed in
practice, as I'm not aware of any suitable directory hierarchy in such
a case.

Any ideas?

--

Arvid




This bug report was last modified 5 years and 212 days ago.

Previous Next


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