[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] emacs: Enable 'guix-build-log-mode' for build log files.
From: |
Alex Kost |
Subject: |
Re: [PATCH 1/3] emacs: Enable 'guix-build-log-mode' for build log files. |
Date: |
Sat, 31 Oct 2015 23:30:10 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Ludovic Courtès (2015-10-30 19:49 +0300) wrote:
> Alex Kost <address@hidden> skribis:
>
>> As suggested by Ludovic on IRC, after this patch, build log files (from
>> /var/log/guix/drvs) will be displayed in a 'guix-build-log-mode'.
>>
>> I'm not sure about regexp though: are these files always "bz2" and
>> ".../XX/XXXXX-30-more-characters-XXXXX/..."?
>
> It’s not necessarily bz2, see ‘guix-daemon --disable-log-compression’.
Thanks for the pointer, now I see.
> The regexp should match 32 characters of ‘%nix-base32-chars’ in (guix
> base32) if we want to be pedantic.
At first I didn't want to be so pedantic, but since these base32 chars
are used in 'guix-prettify-regexp' anyway, I agree, thanks!
> Could you update the patch accordingly?
So I'm attaching 2 patches: one for adding a regexp to match a hash
character and another for adding 'guix-build-log-mode' to
'auto-mode-alist'.
0001-emacs-Add-guix-hash-char-regexp.patch
Description: Text Data
0002-emacs-Enable-guix-build-log-mode-for-build-log-files.patch
Description: Text Data