From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] emacs: Add 'pretty-sha-path'. Date: Wed, 05 Nov 2014 14:24:08 +0300 Message-ID: <87egthubzb.fsf@gmail.com> References: <87d2926he1.fsf@gmail.com> <87389ybvrr.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlyhF-0002cZ-8U for guix-devel@gnu.org; Wed, 05 Nov 2014 06:24:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlyhA-0007YE-2M for guix-devel@gnu.org; Wed, 05 Nov 2014 06:24:17 -0500 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:39934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlyh9-0007YA-Oc for guix-devel@gnu.org; Wed, 05 Nov 2014 06:24:12 -0500 Received: by mail-la0-f45.google.com with SMTP id pn19so474315lab.18 for ; Wed, 05 Nov 2014 03:24:10 -0800 (PST) In-Reply-To: <87389ybvrr.fsf@netris.org> (Mark H. Weaver's message of "Tue, 04 Nov 2014 14:39:20 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver (2014-11-04 22:39 +0300) wrote: > Hi Alex, > > Alex Kost 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