From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: bug-reference and revisions Date: Fri, 28 Dec 2012 03:20:47 +0400 Message-ID: <50DCD7CF.5090307@yandex.ru> References: <87ip7nqroz.fsf@yandex.ru> <87y5gjgu8e.fsf@mail.jurta.org> <87k3s3rwhc.fsf@yandex.ru> <87han7cdl6.fsf_-_@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356650465 19051 80.91.229.3 (27 Dec 2012 23:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2012 23:21:05 +0000 (UTC) Cc: Sam Steingold , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 28 00:21:20 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ToMlL-0006k0-BB for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2012 00:21:19 +0100 Original-Received: from localhost ([::1]:47118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToMl6-0002z8-Qj for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2012 18:21:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToMl0-0002yk-OD for emacs-devel@gnu.org; Thu, 27 Dec 2012 18:21:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToMkx-00042u-0J for emacs-devel@gnu.org; Thu, 27 Dec 2012 18:20:58 -0500 Original-Received: from mail-la0-f42.google.com ([209.85.215.42]:35211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToMkr-00041j-Jy; Thu, 27 Dec 2012 18:20:49 -0500 Original-Received: by mail-la0-f42.google.com with SMTP id fe20so35362lab.1 for ; Thu, 27 Dec 2012 15:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=LE7IqxuiUpG8+Sm3MRFCEXloWEwL1SWwCBehHO++sWk=; b=FyDJmeaNz6LD+Qfv8o9Wt7628BtrWWfoQ7os1yVvA0HPnllQDkOemi3Jzg59mWrENl VD6I1/iM9PN1hi6s2j4/GUEvNG/drcJ7RcbNIhYfIYV8pxf12JuLwjWW+dYtUp3fILKR +yn9ISq7I4EsCvQ1JFKVkKMX/iACyhgShOIbgGQRRXnlh5EsaIFITTCrDKasCV6NJcA6 AOFeALOfpemShQhHaj0MbujGv7Zxh0eR0HTE9Ei2H2+IDFe3Sl5Y+Hnar+ghQ91ncy04 W64ngt74M92rMvKTZJPnojDZ0OdPcnHK5QiEseWrMr0HncZkV8TgUD2WrrqTRLNHRbnu E5VA== X-Received: by 10.112.50.138 with SMTP id c10mr12670697lbo.104.1356650448437; Thu, 27 Dec 2012 15:20:48 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id sr6sm11710885lab.4.2012.12.27.15.20.45 (version=SSLv3 cipher=OTHER); Thu, 27 Dec 2012 15:20:46 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <87han7cdl6.fsf_-_@mail.jurta.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155950 Archived-At: 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?