[Top][All Lists]

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

Re: bug-reference and revisions

From: Dmitry Gutov
Subject: Re: bug-reference and revisions
Date: Fri, 28 Dec 2012 03:20:47 +0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 28.12.2012 2:45, Juri Linkov wrote:
-       from 109911 (see the new test).
+       from Bug#109911 (see the new test).

This change is inaccurate. 109911 is a Bazaar revision, not a bug number.

To avoid ambiguity and misunderstanding revisions should have a prefix
similar to bug numbers, e.g. revno#109911 or revno:109911.

Thanks, will do next time.
I guess I'm used to Git, where you don't usually prefix commit ids with

Support for links to revision numbers could be added to bug-reference.el
to fontify strings like "revno:109911" where clicking on them will open

That would be nice.

This is possible with a small patch that adds these formats:

> ...
Then evaluating this will open the link:
(setq bug-reference-url-format

but unfortunately it will override "http://debbugs.gnu.org/%s";.

To handle two URL types requires customizing `bug-reference-url-format'
to a function that would decide which URL format to use.

Why not add a function that would do exactly that and then set bug-reference-url-format to it in .dir-locals.el?

reply via email to

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