guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New section to easily reference Debbugs URLs within Emacs Debbugs


From: Mekeor Melire
Subject: Re: New section to easily reference Debbugs URLs within Emacs Debbugs
Date: Wed, 04 Oct 2023 20:39:32 +0000

Thanks, Maxim, for implementing some of my suggestions in commit 06dc36ffb7cde821a4762b299d1c95b3788ba110, as I coincidentally found out when reading the commit log.

By the way, I still believe it's less off-putting for average people to see two lines of regular expressions instead of 28 lines of symbolic expressions.

I'd now like to make another suggestion, appended as patch, that allows for 
URLs like https://issues.guix.gnu.org/12345 to be opened in debbugs-mode within 
Emacs.

>From c7531be0ef70e7b872ffe1f759ded05d3819f863 Mon Sep 17 00:00:00 2001
Message-ID: 
<c7531be0ef70e7b872ffe1f759ded05d3819f863.1696452375.git.mekeor@posteo.de>
From: Mekeor Melire <mekeor@posteo.de>
Date: Wed, 4 Oct 2023 22:31:31 +0200
Subject: [PATCH] doc: Update bug-reference configuration snippet.

* doc/contributing.texi (The Perfect Setup)
<Viewing Bugs within Emacs>: Make bug-reference-bug-regexp match
URLs based on issues.guix.gnu.org.
---
 doc/contributing.texi | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index 0de47a403b..d32d8baf53 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -427,9 +427,13 @@ The Perfect Setup
                                  (zero-or-one
                                   (seq "#" (one-or-more
                                             (char "0-9"))))))
-                     (seq "<https://bugs.gnu.org/";
+                     (seq (? "<") "https://bugs.gnu.org/";
                           (group-n 2 (one-or-more (char "0-9")))
-                          ">")))))
+                          (? ">"))
+                     (seq (? "<") "https://issues.guix.gnu.org/";
+                          (? "issue/")
+                          (group-n 2 (one-or-more (char "0-9")))
+                          (? ">"))))))
 (setq bug-reference-url-format "https://issues.guix.gnu.org/%s";)
 
 (require 'debbugs)

base-commit: 0a1af11ff82254b369fa3ac8a9af2d97bb877ed0
prerequisite-patch-id: 5c2772bc2c8e5d80d5bbe55f6d301484e5976243
prerequisite-patch-id: 8bbff2e38835dfc1230b6bd67b342e6137e85f9e
prerequisite-patch-id: 158f8f743ea550ad35ec410cea3ed8fd7b3bc1f5
prerequisite-patch-id: f053f68a1b77d4246cf0f0ae42644f9c51a809a3
-- 
2.41.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]