[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] emacs: Add 'pretty-sha-path'.
From: |
Mark H Weaver |
Subject: |
Re: [PATCH] emacs: Add 'pretty-sha-path'. |
Date: |
Tue, 04 Nov 2014 14:39:20 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Hi Alex,
Alex Kost <address@hidden> writes:
> +(defcustom pretty-sha-path-regexp
> + (rx "/"
> + (or "nix" "gnu")
> + "/store/"
> + (group (= 32 alnum)))
I'm not sure if it's worth it, but you could make this regexp more
restrictive. Nix hashes can only contain the following 32 characters:
"0123456789abcdfghijklmnpqrsvwxyz"
i.e. digits and lowercase ASCII letters excluding (e o u t). See
'base32Chars' in nix/libutil/hash.cc.
Mark
- [PATCH] emacs: Add 'pretty-sha-path'., Alex Kost, 2014/11/04
- Re: [PATCH] emacs: Add 'pretty-sha-path'.,
Mark H Weaver <=
- Re: [PATCH] emacs: Add 'pretty-sha-path'., Ludovic Courtès, 2014/11/04
- Re: [PATCH] emacs: Add 'pretty-sha-path'., Alex Kost, 2014/11/05
- Re: [PATCH] emacs: Add 'pretty-sha-path'., Ludovic Courtès, 2014/11/05
- Re: [PATCH] emacs: Add 'pretty-sha-path'., Alex Kost, 2014/11/05
- Re: [PATCH] emacs: Add 'pretty-sha-path'., Ludovic Courtès, 2014/11/06
- [PATCH] emacs: Add 'guix-prettify'., Alex Kost, 2014/11/06
- Re: [PATCH] emacs: Add 'guix-prettify'., Ludovic Courtès, 2014/11/06