Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-06 Thread Ludovic Courtès
Alex Kost skribis: > Ludovic Courtès (2014-11-05 23:12 +0300) wrote: > >> Alex Kost skribis: >> >>> Ludovic Courtès (2014-11-05 00:37 +0300) wrote: >>> Alex Kost skribis: > Also I forgot to mention “emacs/guix-messages.el” in “emacs.am” in > commit 62f261d, so I did it in this

Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-05 Thread Alex Kost
Ludovic Courtès (2014-11-05 23:12 +0300) wrote: > Alex Kost skribis: > >> Ludovic Courtès (2014-11-05 00:37 +0300) wrote: >> >>> Alex Kost skribis: >>> Also I forgot to mention “emacs/guix-messages.el” in “emacs.am” in commit 62f261d, so I did it in this patch (I hope it's not too evil

Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-05 Thread Ludovic Courtès
Alex Kost skribis: > Ludovic Courtès (2014-11-05 00:37 +0300) wrote: > >> Alex Kost skribis: >> >>> Also I forgot to mention “emacs/guix-messages.el” in “emacs.am” in >>> commit 62f261d, so I did it in this patch (I hope it's not too evil :-)) >> >> Maybe “evil” is too strong a word ;-), but ple

Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-05 Thread Alex Kost
(the patch is attached :-)). >> From e7ca6550d7f33d894e0023e3305938fce365fdba Mon Sep 17 00:00:00 2001 >> From: Alex Kost >> Date: Tue, 4 Nov 2014 19:38:27 +0300 >> Subject: [PATCH] emacs: Add 'pretty-sha-path'. >> >> * emacs/pretty-sha-path.el: New file

Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-05 Thread Alex Kost
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.

Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-04 Thread Ludovic Courtès
s are cheap and easy, so let’s favor clarity. > From e7ca6550d7f33d894e0023e3305938fce365fdba Mon Sep 17 00:00:00 2001 > From: Alex Kost > Date: Tue, 4 Nov 2014 19:38:27 +0300 > Subject: [PATCH] emacs: Add 'pretty-sha-path'. > > * emacs/pretty-sha-path.el: New file.

Re: [PATCH] emacs: Add 'pretty-sha-path'.

2014-11-04 Thread Mark H Weaver
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: "

[PATCH] emacs: Add 'pretty-sha-path'.

2014-11-04 Thread Alex Kost
Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Tue, 4 Nov 2014 19:38:27 +0300 Subject: [PATCH] emacs: Add 'pretty-sha-path'. * emacs/pretty-sha-path.el: New file. * emacs.am (ELFILES): Add it. * doc/emacs.texi (Emacs Pretty Path): New node. --- doc/emacs.texi | 41 ++