|
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 anything.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 http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/109911
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 "http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/%s") 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?
[Prev in Thread] | Current Thread | [Next in Thread] |