Index: src/TortoiseProc/LogDlg.cpp
===================================================================
--- src/TortoiseProc/LogDlg.cpp	(revision 11037)
+++ src/TortoiseProc/LogDlg.cpp	(working copy)
@@ -140,6 +140,7 @@
 	CResizableStandAloneDialog::DoDataExchange(pDX);
 	DDX_Control(pDX, IDC_LOGLIST, m_LogList);
 	DDX_Control(pDX, IDC_LOGMSG, m_ChangedFileListCtrl);
+	DDX_Control(pDX, IDC_MSGEDIT, m_cLogMessage);
 	DDX_Control(pDX, IDC_PROGRESS, m_LogProgress);
 	DDX_Control(pDX, IDC_SPLITTERTOP, m_wndSplitter1);
 	DDX_Control(pDX, IDC_SPLITTERBOTTOM, m_wndSplitter2);
@@ -162,7 +163,7 @@
 	ON_WM_SETCURSOR()
 	ON_BN_CLICKED(IDHELP, OnBnClickedHelp)
 	ON_NOTIFY(LVN_ITEMCHANGED, IDC_LOGLIST, OnLvnItemchangedLoglist)
-	ON_NOTIFY(EN_LINK, IDC_MSGVIEW, OnEnLinkMsgview)
+	ON_NOTIFY(EN_LINK, IDC_MSGEDIT, OnEnLinkMsgview)
 	ON_BN_CLICKED(IDC_STATBUTTON, OnBnClickedStatbutton)
 	ON_NOTIFY(NM_CUSTOMDRAW, IDC_LOGLIST, OnNMCustomdrawLoglist)
 	ON_MESSAGE(WM_FILTEREDIT_INFOCLICKED, OnClickedInfoIcon)
@@ -224,13 +225,22 @@
 
 	SetDlgItemText(IDC_NEXTHUNDRED, temp);
 
+	// if there is a working copy, load the project properties
+	// to get information about the bugtraq: integration
+	if (m_hasWC)
+		m_ProjectProperties.ReadProps(m_path);
+
 	// set the font to use in the log message view, configured in the settings dialog
 	CAppUtils::CreateFontForLogs(m_logFont);
-	GetDlgItem(IDC_MSGVIEW)->SetFont(&m_logFont);
+	m_cLogMessage.Init(m_ProjectProperties);
+	m_cLogMessage.SetFont(
+		(CString)CRegString(_T("Software\\TortoiseSVN\\LogFontName"), _T("Courier New")),
+		(DWORD)CRegDWORD(_T("Software\\TortoiseSVN\\LogFontSize"), 8));
+	//m_cLogMessage.Call(SCI_SETREADONLY, 1);
 	// automatically detect URLs in the log message and turn them into links
-	GetDlgItem(IDC_MSGVIEW)->SendMessage(EM_AUTOURLDETECT, TRUE, NULL);
+	//GetDlgItem(IDC_MSGEDIT)->SendMessage(EM_AUTOURLDETECT, TRUE, NULL);
 	// make the log message rich edit control send a message when the mouse pointer is over a link
-	GetDlgItem(IDC_MSGVIEW)->SendMessage(EM_SETEVENTMASK, NULL, ENM_LINK);
+	//GetDlgItem(IDC_MSGEDIT)->SendMessage(EM_SETEVENTMASK, NULL, ENM_LINK);
 	m_LogList.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER | LVS_EX_SUBITEMIMAGES);
 
 	// the "hide unrelated paths" checkbox should be indeterminate
@@ -242,11 +252,6 @@
 	m_hAddedIcon = (HICON)LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_ACTIONADDED), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE);
 	m_hDeletedIcon = (HICON)LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_ACTIONDELETED), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE);
 	
-	// if there is a working copy, load the project properties
-	// to get information about the bugtraq: integration
-	if (m_hasWC)
-		m_ProjectProperties.ReadProps(m_path);
-
 	// the bugtraq issue id column is only shown if the bugtraq:url or bugtraq:regex is set
 	if ((!m_ProjectProperties.sUrl.IsEmpty())||(!m_ProjectProperties.sBugIDRe.IsEmpty()))
 		m_bShowBugtraqColumn = true;
@@ -329,7 +334,7 @@
 
 	GetClientRect(m_DlgOrigRect);
 	m_LogList.GetClientRect(m_LogListOrigRect);
-	GetDlgItem(IDC_MSGVIEW)->GetClientRect(m_MsgViewOrigRect);
+	GetDlgItem(IDC_MSGEDIT)->GetClientRect(m_MsgViewOrigRect);
 
 	// resizable stuff
 	AddAnchor(IDC_FROMLABEL, TOP_LEFT);
@@ -342,7 +347,7 @@
 	
 	AddAnchor(IDC_LOGLIST, TOP_LEFT, ANCHOR(100, 40));
 	AddAnchor(IDC_SPLITTERTOP, ANCHOR(0, 40), ANCHOR(100, 40));
-	AddAnchor(IDC_MSGVIEW, ANCHOR(0, 40), ANCHOR(100, 90));
+	AddAnchor(IDC_MSGEDIT, ANCHOR(0, 40), ANCHOR(100, 90));
 	AddAnchor(IDC_SPLITTERBOTTOM, ANCHOR(0, 90), ANCHOR(100, 90));
 	AddAnchor(IDC_LOGMSG, ANCHOR(0, 90), BOTTOM_RIGHT);
 
@@ -422,7 +427,7 @@
 		InterlockedExchange(&m_bNoDispUpdates, FALSE);
 		CMessageBox::Show(NULL, IDS_ERR_THREADSTARTFAILED, IDS_APPNAME, MB_OK | MB_ICONERROR);
 	}
-	//GetDlgItem(IDC_MSGVIEW)->SetFocus();
+	//GetDlgItem(IDC_MSGEDIT)->SetFocus();
 	return FALSE;
 }
 
@@ -460,7 +465,7 @@
 	// and also populate the changed files list control
 	// according to the selected revision(s).
 
-	CWnd * pMsgView = GetDlgItem(IDC_MSGVIEW);
+	CWnd * pMsgView = GetDlgItem(IDC_MSGEDIT);
 	// empty the log message view
 	pMsgView->SetWindowText(_T(" "));
 	// empty the changed files list
@@ -512,8 +517,8 @@
 		pMsgView->SetWindowText(pLogEntry->sMessage);
 		// turn bug ID's into links if the bugtraq: properties have been set
 		// and we can find a match of those in the log message
-		m_ProjectProperties.FindBugID(pLogEntry->sMessage, pMsgView);
-		CAppUtils::FormatTextInRichEditControl(pMsgView);
+		//m_ProjectProperties.FindBugID(pLogEntry->sMessage, pMsgView);
+		//CAppUtils::FormatTextInRichEditControl(pMsgView);
 		m_currentChangedArray = pLogEntry->pArChangedPaths;
 		if (m_currentChangedArray == NULL)
 		{
@@ -631,7 +636,7 @@
 	m_LogList.SetItemCountEx(0);
 	m_LogList.Invalidate();
 	InterlockedExchange(&m_bNoDispUpdates, TRUE);
-	CWnd * pMsgView = GetDlgItem(IDC_MSGVIEW);
+	CWnd * pMsgView = GetDlgItem(IDC_MSGEDIT);
 	pMsgView->SetWindowText(_T(""));
 
 	SetSortArrow(&m_LogList, -1, true);
@@ -689,7 +694,7 @@
 	m_LogList.SetItemCountEx(0);
 	m_LogList.Invalidate();
 	InterlockedExchange(&m_bNoDispUpdates, TRUE);
-	CWnd * pMsgView = GetDlgItem(IDC_MSGVIEW);
+	CWnd * pMsgView = GetDlgItem(IDC_MSGEDIT);
 	pMsgView->SetWindowText(_T(""));
 
 	SetSortArrow(&m_LogList, -1, true);
@@ -1850,10 +1855,10 @@
 			else
 				dlg.m_sInputText.Empty();
 			pLogEntry->sMessage = dlg.m_sInputText;
-			CWnd * pMsgView = GetDlgItem(IDC_MSGVIEW);
+			CWnd * pMsgView = GetDlgItem(IDC_MSGEDIT);
 			pMsgView->SetWindowText(_T(" "));
 			pMsgView->SetWindowText(dlg.m_sInputText);
-			m_ProjectProperties.FindBugID(dlg.m_sInputText, pMsgView);
+			//m_ProjectProperties.FindBugID(dlg.m_sInputText, pMsgView);
 			m_LogList.Invalidate();
         
             // update the log cache 
@@ -1882,7 +1887,10 @@
 BOOL CLogDlg::PreTranslateMessage(MSG* pMsg)
 {
 	// Skip Ctrl-C when copying text out of the log message or search filter
-	BOOL bSkipAccelerator = ( pMsg->message == WM_KEYDOWN && pMsg->wParam=='C' && (GetFocus()==GetDlgItem(IDC_MSGVIEW) || GetFocus()==GetDlgItem(IDC_SEARCHEDIT) ) && GetKeyState(VK_CONTROL)&0x8000 );
+	BOOL bSkipAccelerator = (
+		pMsg->message == WM_KEYDOWN && pMsg->wParam=='C' &&
+		(GetFocus()==GetDlgItem(IDC_MSGEDIT) || GetFocus()==GetDlgItem(IDC_SEARCHEDIT) ) &&
+		GetKeyState(VK_CONTROL)&0x8000 );
 	
 	if (m_hAccel && !bSkipAccelerator)
 	{
@@ -1902,7 +1910,7 @@
 		// only show the wait cursor over the list control
 		if ((pWnd)&&
 			((pWnd == GetDlgItem(IDC_LOGLIST))||
-			(pWnd == GetDlgItem(IDC_MSGVIEW))||
+			(pWnd == GetDlgItem(IDC_MSGEDIT))||
 			(pWnd == GetDlgItem(IDC_LOGMSG))))
 		{
 			HCURSOR hCur = LoadCursor(NULL, MAKEINTRESOURCE(IDC_WAIT));
@@ -1954,7 +1962,7 @@
 	if (pEnLink->msg == WM_LBUTTONUP)
 	{
 		CString url, msg;
-		GetDlgItem(IDC_MSGVIEW)->GetWindowText(msg);
+		GetDlgItem(IDC_MSGEDIT)->GetWindowText(msg);
 		msg.Replace(_T("\r\n"), _T("\n"));
 		url = msg.Mid(pEnLink->chrg.cpMin, pEnLink->chrg.cpMax-pEnLink->chrg.cpMin);
 		if (!::PathIsURL(url))
@@ -2192,41 +2200,41 @@
 {
 	RemoveAnchor(IDC_LOGLIST);
 	RemoveAnchor(IDC_SPLITTERTOP);
-	RemoveAnchor(IDC_MSGVIEW);
+	RemoveAnchor(IDC_MSGEDIT);
 	RemoveAnchor(IDC_SPLITTERBOTTOM);
 	RemoveAnchor(IDC_LOGMSG);
 	CSplitterControl::ChangeHeight(&m_LogList, delta, CW_TOPALIGN);
-	CSplitterControl::ChangeHeight(GetDlgItem(IDC_MSGVIEW), -delta, CW_BOTTOMALIGN);
+	CSplitterControl::ChangeHeight(GetDlgItem(IDC_MSGEDIT), -delta, CW_BOTTOMALIGN);
 	AddAnchor(IDC_LOGLIST, TOP_LEFT, ANCHOR(100, 40));
 	AddAnchor(IDC_SPLITTERTOP, ANCHOR(0, 40), ANCHOR(100, 40));
-	AddAnchor(IDC_MSGVIEW, ANCHOR(0, 40), ANCHOR(100, 90));
+	AddAnchor(IDC_MSGEDIT, ANCHOR(0, 40), ANCHOR(100, 90));
 	AddAnchor(IDC_SPLITTERBOTTOM, ANCHOR(0, 90), ANCHOR(100, 90));
 	AddAnchor(IDC_LOGMSG, ANCHOR(0, 90), BOTTOM_RIGHT);
 	ArrangeLayout();
 	AdjustMinSize();
 	SetSplitterRange();
 	m_LogList.Invalidate();
-	GetDlgItem(IDC_MSGVIEW)->Invalidate();
+	GetDlgItem(IDC_MSGEDIT)->Invalidate();
 }
 
 void CLogDlg::DoSizeV2(int delta)
 {
 	RemoveAnchor(IDC_LOGLIST);
 	RemoveAnchor(IDC_SPLITTERTOP);
-	RemoveAnchor(IDC_MSGVIEW);
+	RemoveAnchor(IDC_MSGEDIT);
 	RemoveAnchor(IDC_SPLITTERBOTTOM);
 	RemoveAnchor(IDC_LOGMSG);
-	CSplitterControl::ChangeHeight(GetDlgItem(IDC_MSGVIEW), delta, CW_TOPALIGN);
+	CSplitterControl::ChangeHeight(GetDlgItem(IDC_MSGEDIT), delta, CW_TOPALIGN);
 	CSplitterControl::ChangeHeight(&m_ChangedFileListCtrl, -delta, CW_BOTTOMALIGN);
 	AddAnchor(IDC_LOGLIST, TOP_LEFT, ANCHOR(100, 40));
 	AddAnchor(IDC_SPLITTERTOP, ANCHOR(0, 40), ANCHOR(100, 40));
-	AddAnchor(IDC_MSGVIEW, ANCHOR(0, 40), ANCHOR(100, 90));
+	AddAnchor(IDC_MSGEDIT, ANCHOR(0, 40), ANCHOR(100, 90));
 	AddAnchor(IDC_SPLITTERBOTTOM, ANCHOR(0, 90), ANCHOR(100, 90));
 	AddAnchor(IDC_LOGMSG, ANCHOR(0, 90), BOTTOM_RIGHT);
 	ArrangeLayout();
 	AdjustMinSize();
 	SetSplitterRange();
-	GetDlgItem(IDC_MSGVIEW)->Invalidate();
+	GetDlgItem(IDC_MSGEDIT)->Invalidate();
 	m_ChangedFileListCtrl.Invalidate();
 }
 
@@ -2235,7 +2243,7 @@
 	// adjust the minimum size of the dialog to prevent the resizing from
 	// moving the list control too far down.
 	CRect rcMsgView;
-	GetDlgItem(IDC_MSGVIEW)->GetClientRect(rcMsgView);
+	GetDlgItem(IDC_MSGEDIT)->GetClientRect(rcMsgView);
 	CRect rcLogList;
 	m_LogList.GetClientRect(rcLogList);
 
@@ -2271,7 +2279,7 @@
 		m_LogList.GetWindowRect(rcTop);
 		ScreenToClient(rcTop);
 		CRect rcMiddle;
-		GetDlgItem(IDC_MSGVIEW)->GetWindowRect(rcMiddle);
+		GetDlgItem(IDC_MSGEDIT)->GetWindowRect(rcMiddle);
 		ScreenToClient(rcMiddle);
 		m_wndSplitter1.SetRange(rcTop.top+20, rcMiddle.bottom-20);
 		CRect rcBottom;
Index: src/TortoiseProc/LogDlg.h
===================================================================
--- src/TortoiseProc/LogDlg.h	(revision 11037)
+++ src/TortoiseProc/LogDlg.h	(working copy)
@@ -30,6 +30,7 @@
 #include "LogDlgHelper.h"
 #include "FilterEdit.h"
 #include "SVNRev.h"
+#include "SciEdit.h"
 
 #define LOGFILTER_ALL      1
 #define LOGFILTER_MESSAGES 2
@@ -234,6 +235,7 @@
 	bool				m_bSelect;
 	bool				m_bShowBugtraqColumn;
 	CString				m_sLogInfo;
+	CSciEdit			m_cLogMessage;
 	std::set<svn_revnum_t> m_mergedRevs;
 
 	CBalloon			m_tooltips;
Index: src/Utils/MiscUI/SciEdit.cpp
===================================================================
--- src/Utils/MiscUI/SciEdit.cpp	(revision 11037)
+++ src/Utils/MiscUI/SciEdit.cpp	(working copy)
@@ -156,6 +156,7 @@
 	Init(props.lProjectLanguage);
 	m_sCommand = CStringA(CUnicodeUtils::GetUTF8(props.sCheckRe));
 	m_sBugID = CStringA(CUnicodeUtils::GetUTF8(props.sBugIDRe));
+	m_sUrl = CStringA(CUnicodeUtils::GetUTF8(props.sUrl));
 	try
 	{
 		if (!m_sBugID.IsEmpty())
@@ -375,6 +376,7 @@
 	Call(SCI_STYLESETBOLD, STYLE_BOLD, (LPARAM)TRUE);
 	Call(SCI_STYLESETITALIC, STYLE_ITALIC, (LPARAM)TRUE);
 	Call(SCI_STYLESETUNDERLINE, STYLE_UNDERLINED, (LPARAM)TRUE);
+	Call(SCI_STYLESETHOTSPOT, STYLE_ISSUEBOLDITALIC, (LPARAM)TRUE);
 }
 
 void CSciEdit::SetAutoCompletionList(const std::set<CString>& list, const TCHAR separator)
@@ -574,6 +576,7 @@
 			return TRUE;
 			break;
 		case SCN_STYLENEEDED:
+			{
 			int startstylepos = Call(SCI_GETENDSTYLED);
 			int endstylepos = ((SCNotification *)lpnmhdr)->position;
 			CheckSpelling();
@@ -582,6 +585,31 @@
 			WrapLines(startstylepos, endstylepos);
 			return TRUE;
 			break;
+			}
+		case SCN_HOTSPOTCLICK:
+			{
+			CString url, msg;
+
+			TEXTRANGEA textrange;
+			textrange.chrg.cpMin = Call(SCI_WORDSTARTPOSITION, lpSCN->position, TRUE);
+			if ((lpSCN->position == textrange.chrg.cpMin)||(textrange.chrg.cpMin < 0))
+				break;
+			textrange.chrg.cpMax = Call(SCI_WORDENDPOSITION, textrange.chrg.cpMin, TRUE);
+			
+			char * textbuffer = new char[textrange.chrg.cpMax - textrange.chrg.cpMin + 1];
+
+			textrange.lpstrText = textbuffer;	
+			Call(SCI_GETTEXTRANGE, 0, (LPARAM)&textrange);
+			//if (!::PathIsURL(url))
+			{
+				url = m_sUrl;
+				url.Replace(_T("%BUGID%"), StringFromControl(textbuffer));
+			}
+			delete textbuffer;
+			if (!url.IsEmpty())
+				ShellExecute(GetParent()->GetSafeHwnd(), _T("open"), url, NULL, NULL, SW_SHOWDEFAULT);
+			break;
+			}
 		}
 	}
 	return CWnd::OnChildNotify(message, wParam, lParam, pLResult);
Index: src/Utils/MiscUI/SciEdit.h
===================================================================
--- src/Utils/MiscUI/SciEdit.h	(revision 11037)
+++ src/Utils/MiscUI/SciEdit.h	(working copy)
@@ -120,6 +120,7 @@
 	TCHAR		m_separator;
 	CString		m_sCommand;
 	CString		m_sBugID;
+	CString		m_sUrl;
 	rpattern	m_patCommand;
 	rpattern	m_patBugID;
 	CArray<CSciEditContextMenuInterface *, CSciEditContextMenuInterface *> m_arContextHandlers;
