[mew-int 2928] Identify urls
"Diogo F. S. Ramos" <[email protected]> Fri, 05 Nov 2010 00:22:55 -0200 (BRST)
| Newsgroups | gmane.mail.mew.general |
|---|---|
| Message-ID | <[email protected]> |
Sometimes Mew can't identify correctly an url. Looking at this issue, it does not seem trivial to identify one using regex. Heck, even `thingatpt' can't always do it as one would expect (try `(http://www.example.com)'). Well, I slightly modified the regex used by Mew to identify urls. In my brief experience it seems to recognize correctly a little bigger set of urls than the previous one. What do you think? -- Diogo F. S. Ramos
identify-url.patch
(text/x-patch, 383 B)
diff --git a/mew-vars.el b/mew-vars.el
index d6c2e61..4a8b238 100644
--- a/mew-vars.el
+++ b/mew-vars.el
@@ -2855,7 +2855,7 @@ in Summary/Virtual mode."
"\\|"
"\\(\\(s?https?\\|ftp\\|gopher\\|telnet\\|wais\\)://\\)"
"\\)"
- "[^ \t\n>)\"]*"
+ "[^ \t\n\"]*"
"[^ \t\n>.,:)\"]+")
"*Regular expression to find URL."
:group 'mew-highlight