From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edward O'Connor Newsgroups: gmane.emacs.devel Subject: patch: remove data: URLs from goto-address-url-regexp Date: Tue, 25 Oct 2005 16:12:52 -0700 Organization: Church of Emacs Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1130282321 19110 80.91.229.2 (25 Oct 2005 23:18:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 23:18:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 01:18:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUY38-0002B6-D4 for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 01:17:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUY37-0005JQ-DJ for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 19:17:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUY22-0004N6-0p for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:16:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUY1z-0004I0-Gn for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:16:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUY1y-0004H3-B1 for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:16:34 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EUY1y-0003Yl-7I for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:16:34 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EUY0H-0000it-5e for emacs-devel@gnu.org; Wed, 26 Oct 2005 01:14:49 +0200 Original-Received: from rrcs-67-52-157-90.west.biz.rr.com ([67.52.157.90]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Oct 2005 01:14:49 +0200 Original-Received: from hober0 by rrcs-67-52-157-90.west.biz.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Oct 2005 01:14:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 59 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: rrcs-67-52-157-90.west.biz.rr.com Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEX47PoBAAegiLwiH1N IQYI0M4iMeKYBAAYGBBGqm9JF4g0mAAACYElEQVR4nGWTsY/aMBTGLXoLo8WQjNVrFJXxzviUbig JEcy5SNft5LhRGT3RNecUuRuiCMn/bZ+dhHDqJ2SZ7+f3nt/DEMOcqv9E9AdQTsD7fPw6hRIz+iw xxuhbMBn3SUtRofk95CTa9D49UIWiRvt4TnTiNmUbHIIDykUxdwm8lTvQUmergwoCpXR/qwojXqk 7jTEK1xANXhKOgD8eRmHggrt2CNKKtfcAU3EHkCbB5OJn4Ws40Prco6jhAyiDoSyeTrAb1gNe+dI eKNVlpvXNE5+pT6HUIjEi24a8B6XvjSrd0rCon5vCDwX7eA2wvV9bqrPWdCAFZBtfA0tQRWmRsE6 uZCMA6qYHbRDg6I5RlxVSFNCISG56QB3oIBNSRKL+JuLMg9LZlGqIUhCFlH9m8FN74GxFQwEFxKm crWYQJQ680v43TSEGEDArAWLJPVAObN8BHDghhrwcI1RYH2GSLMfiKnzWd6DGx4DvwNc41mIC0QQ WqzgXH0HV+kvVoohvIB5AaHRSyCZHyzawtOd4SBUyXR9lxOb2RB7Sz4T0AB8zY/smvWzRIrN0OQL GcsbW8zf7dY1gfsIlZm66JUsdOK3ljjjNCbnoHuxq9jQnb+TkAa6XY0XyJmf7C1uRwfbk4b0m1tr 8+zljb+ROD0+xA9f4umHP9+CTAAesjfGPWNyBvzCAc5ax/I40CFJPvkQrC/vRP+NsiC58LpGKfWH 7Ppy/JMY8ObK0AJfTRUDTz5eQxHS2VxPlG1697N0ee4qSbjeQ64bjc94Nhex1b+2N5Hn1MoJJwlp pf1Rr7/8DXitGHanPc2gAAAAASUVORK5CYII= X-Attribution: Ted User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (darwin) Cancel-Lock: sha1:bmHPQh434AieHE44ePMd7hNVOew= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44878 Archived-At: --=-=-= Hi, Included is a trivial patch to net/goto-addr.el which removes data: URLs from goto-address-url-regexp. I noticed that 'use Data::Dumper;' was being fontified oddly in Perl files, and tracked it down to this. As far as I know, following such URLs in Emacs is not terribly useful. Ted -- Edward O'Connor hober0@gmail.com Ense petit placidam sub libertate quietem. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=goto-addr.el.diff Content-Description: remove data: URLs from goto-address-url-regexp *** code/emacs/lisp/net/goto-addr.el Tue Aug 2 09:58:56 2005 --- /Users/ted/Desktop/goto-addr.el Tue Oct 25 16:08:49 2005 *************** *** 105,116 **** "A regular expression probably matching an e-mail address.") (defvar goto-address-url-regexp ! (concat "\\<\\(" ! (mapconcat 'identity ! (delete "mailto:" (copy-sequence thing-at-point-uri-schemes)) ! "\\|") ! "\\)" ! thing-at-point-url-path-regexp) ;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|" ;; "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:" ;; "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*" --- 105,119 ---- "A regular expression probably matching an e-mail address.") (defvar goto-address-url-regexp ! (concat ! "\\<\\(" ! (mapconcat 'identity ! (delete "mailto:" ! (delete "data:" ! (copy-sequence thing-at-point-uri-schemes))) ! "\\|") ! "\\)" ! thing-at-point-url-path-regexp) ;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|" ;; "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:" ;; "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*" --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--