From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH] emacs: Improve 'guix-prettify-regexp'. Date: Sat, 19 Sep 2015 14:03:57 +0300 Message-ID: <8737yavffm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFvx-0005FE-Fd for guix-devel@gnu.org; Sat, 19 Sep 2015 07:03:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdFvu-0005o2-9p for guix-devel@gnu.org; Sat, 19 Sep 2015 07:03:57 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:35147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFvu-0005nv-0r for guix-devel@gnu.org; Sat, 19 Sep 2015 07:03:54 -0400 Received: by lbpo4 with SMTP id o4so35132526lbp.2 for ; Sat, 19 Sep 2015 04:03:53 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id qj3sm2016747lbb.17.2015.09.19.04.03.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Sep 2015 04:03:52 -0700 (PDT) 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: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, along with: /gnu/store/=E2=80=A6-foo-0.1 we have: http://hydra.gnu.org/nar/=E2=80=A6-foo-0.1 http://hydra.gnu.org/log/=E2=80=A6-foo-0.1 I think it would be good to "prettify" such things as well, so what about the attached patch? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-emacs-Improve-guix-prettify-regexp.patch >From 5914f7007d1b27c0fa8594df4c1cff5fdd35e359 Mon Sep 17 00:00:00 2001 From: Alex Kost 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". --- emacs/guix-prettify.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/emacs/guix-prettify.el b/emacs/guix-prettify.el index 24dfbb3..5d1ce9e 100644 --- a/emacs/guix-prettify.el +++ b/emacs/guix-prettify.el @@ -77,9 +77,7 @@ disabling `guix-prettify-mode' a little faster." :group 'guix-prettify) (defcustom guix-prettify-regexp - (rx "/" - (or "nix" "gnu") - "/store/" + (rx "/" (or "store" "nar" "log") "/" ;; Hash-parts do not include "e", "o", "u" and "t". See base32Chars ;; at (group (= 32 (any "0-9" "a-d" "f-n" "p-s" "v-z")))) -- 2.5.0 --=-=-=--