From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.devel Subject: Re: Another issue with thingatpt Date: Wed, 03 Jan 2007 15:50:23 +0100 Message-ID: <459BC2AF.8010501@easy-emacs.de> References: <003001c727be$349c5a80$0203a8c0@HomeNetbbb0> <20061225.094150.13771816.wl@gnu.org> <20061227.115042.56977126.wl@gnu.org> <17810.55182.483602.421178@rgrjr.dyndns.org> <17815.10669.22210.825181@rgrjr.dyndns.org> <4597820F.9080906@easy-emacs.de> <17815.62022.147181.758643@rgrjr.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167835496 18913 80.91.229.12 (3 Jan 2007 14:44:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 14:44:56 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 03 15:44:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H27MB-0000ZT-SG for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 15:44:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H27MB-0004Pa-BQ for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 09:44:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H27LI-0003wO-Up for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:43:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H27LH-0003vb-FR for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:43:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H27LH-0003vY-5Q for emacs-devel@gnu.org; Wed, 03 Jan 2007 09:43:47 -0500 Original-Received: from [212.227.126.174] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H27LE-00039f-Hz; Wed, 03 Jan 2007 09:43:45 -0500 Original-Received: from [84.190.147.34] (helo=[192.168.178.25]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1H27LC00Dj-00075p; Wed, 03 Jan 2007 15:43:43 +0100 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) Original-To: Bob Rogers In-Reply-To: <17815.62022.147181.758643@rgrjr.dyndns.org> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:62d13292e0fce6aaed56aaadcb96352d 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:64691 Archived-At: Employing the forms below together with standard thingatpt-function I see several advantages - url-at-point don't need longer a complicated regexp-corpus, the whole special handling of urls can be dropped - it don't make more specifications than RFC3986; which may help to avoid trouble in the future, if new url schemes may be invented - easy to read and understand from the users side, better to extend and maintain (put 'url 'beginning-op (lambda () (skip-chars-backward ":/?#[]@!$&'()*+,;=[:alnum:]-._~") )) (put 'url 'end-op (lambda () (skip-chars-forward ":/?#[]@!$&'()*+,;=[:alnum:]-._~"))) Already implemented it into thingatpt-utils.el, which is available at gnu.emacs.sources. __ Andreas Roehler