[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Erc-discuss] Re: Underlines and parentheses in URLs
From: |
Lawrence Mitchell |
Subject: |
[Erc-discuss] Re: Underlines and parentheses in URLs |
Date: |
Mon, 28 May 2007 17:04:00 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) |
Michael Olson wrote:
> Someone from #emacs tells me that the text
> http://en.wikipedia.org/wiki/Casablanca_(film)
> does not buttonize properly in conversations. I don't know much about
> erc-button.el, so I'm hoping that someone else can fix this.
You need to modify the regexp in `erc-button-url-regexp' to allow
brackets:
(defcustom erc-button-url-regexp
(concat "\\(www\\.\\|\\(s?https?\\|"
"ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\)"
"\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?"
"address@hidden&*+\\/:;.,()address@hidden&*+\\/()]")
^^ ^^
"Regular expression that matches URLs."
:group 'erc-button
:type 'regexp)
Or something like that.
Lawrence
--
Lawrence Mitchell <address@hidden>