From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sohail Somani Newsgroups: gmane.emacs.help Subject: Re: Turning comments into hyperlinks Date: Thu, 19 Jul 2012 10:55:25 -0400 Message-ID: <50081FDD.2040308@taggedtype.net> References: 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: dough.gmane.org 1342709766 22798 80.91.229.3 (19 Jul 2012 14:56:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 14:56:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 16:56:03 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Srs91-0007CI-Ul for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 16:56:00 +0200 Original-Received: from localhost ([::1]:50392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srs91-0001t4-9b for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 10:55:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srs8t-0001sg-96 for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 10:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srs8n-0006sr-9G for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 10:55:51 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srs8m-0006rv-TK for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 10:55:45 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Srs8g-0006fI-Lt for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 16:55:38 +0200 Original-Received: from 75-119-242-38.dsl.teksavvy.com ([75.119.242.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jul 2012 16:55:38 +0200 Original-Received: from sohail by 75-119-242-38.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jul 2012 16:55:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 75-119-242-38.dsl.teksavvy.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85937 Archived-At: On 19/07/2012 5:45 AM, Tom Willemsen wrote: > Hey Sohail, > > Sohail Somani writes: > >> I have come across an inconvenience which I would like to resolve. I am >> working on a codebase which has the following patterns throughout the code: >> >> // JIRA 12312 >> // ISSUE 12312 >> // KEY-12312 >> >> What I would like to do is match these patterns and turn them into >> hyperlinks that open in the browser. So for example, I might turn >> KEY-12312 into a hyperlink to http://jira.myhomies.com/KEY-12312 but >> continue to display the original text. >> >> How would I accomplish this with cc-mode or emacs in general? > > Have you looked at `bug-reference-prog-mode'? From what I read it seems > to fit perfectly with what you're hoping to accomplish, though I haven't > tried using it myself and I think its only available in emacs 24. This actually looks exactly like what I need. Thanks! The documentation is a little lacking from what I can tell but I think I can make it work :) Sohail