[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] emacs: Improve 'guix-prettify-regexp'.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] emacs: Improve 'guix-prettify-regexp'. |
Date: |
Sun, 20 Sep 2015 18:43:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Alex Kost <address@hidden> skribis:
> Hello, along with:
>
> /gnu/store/…-foo-0.1
>
> we have:
>
> http://hydra.gnu.org/nar/…-foo-0.1
> http://hydra.gnu.org/log/…-foo-0.1
>
> I think it would be good to "prettify" such things as well, so what
> about the attached patch?
Makes sense.
> From 5914f7007d1b27c0fa8594df4c1cff5fdd35e359 Mon Sep 17 00:00:00 2001
> From: Alex Kost <address@hidden>
> Date: Sat, 19 Sep 2015 13:55:59 +0300
> Subject: [PATCH] emacs: Improve 'guix-prettify-regexp'.
>
> * emacs/guix-prettify.el (guix-prettify-regexp): Modify to handle "nar"
> and "log".
[...]
> (defcustom guix-prettify-regexp
> - (rx "/"
> - (or "nix" "gnu")
> - "/store/"
> + (rx "/" (or "store" "nar" "log") "/"
Maybe explicitly show in a comment the URLs and file names that we
intend to match.
Otherwise LGTM, thanks!
Ludo’.