From: Alex Kost <alezost@gmail.com>
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] emacs: Add 'pretty-sha-path'.
Date: Wed, 05 Nov 2014 14:24:08 +0300 [thread overview]
Message-ID: <87egthubzb.fsf@gmail.com> (raw)
In-Reply-To: <87389ybvrr.fsf@netris.org> (Mark H. Weaver's message of "Tue, 04 Nov 2014 14:39:20 -0500")
Mark H Weaver (2014-11-04 22:39 +0300) wrote:
> Hi Alex,
>
> Alex Kost <alezost@gmail.com> 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.
Oh, I didn't know that, thank you for the information; I will adjust the
regexp.
--
Alex
next prev parent reply other threads:[~2014-11-05 11:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 16:48 [PATCH] emacs: Add 'pretty-sha-path' Alex Kost
2014-11-04 19:39 ` Mark H Weaver
2014-11-05 11:24 ` Alex Kost [this message]
2014-11-04 21:37 ` Ludovic Courtès
2014-11-05 11:24 ` Alex Kost
2014-11-05 20:12 ` Ludovic Courtès
2014-11-05 21:38 ` Alex Kost
2014-11-06 9:37 ` Ludovic Courtès
2014-11-06 13:13 ` [PATCH] emacs: Add 'guix-prettify' Alex Kost
2014-11-06 16:05 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egthubzb.fsf@gmail.com \
--to=alezost@gmail.com \
--cc=guix-devel@gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.