From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.devel Subject: Re: FFAP Date: Mon, 9 Nov 2009 13:14:15 -0500 Message-ID: References: <87my2w4gy6.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1257790477 25769 80.91.229.12 (9 Nov 2009 18:14:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 18:14:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 09 19:14:30 2009 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 1N7Yl3-0001DE-Ph for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 19:14:30 +0100 Original-Received: from localhost ([127.0.0.1]:56842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7Yl3-0004J7-6B for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 13:14:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7Ykw-0004I1-Mr for emacs-devel@gnu.org; Mon, 09 Nov 2009 13:14:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7Yks-0004GH-FZ for emacs-devel@gnu.org; Mon, 09 Nov 2009 13:14:22 -0500 Original-Received: from [199.232.76.173] (port=46663 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7Yks-0004G7-8h for emacs-devel@gnu.org; Mon, 09 Nov 2009 13:14:18 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:47117) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7Ykr-0007JV-VT for emacs-devel@gnu.org; Mon, 09 Nov 2009 13:14:18 -0500 Original-Received: by yxe29 with SMTP id 29so3185242yxe.14 for ; Mon, 09 Nov 2009 10:14:17 -0800 (PST) Original-Received: by 10.150.87.28 with SMTP id k28mr13749511ybb.275.1257790455835; Mon, 09 Nov 2009 10:14:15 -0800 (PST) In-Reply-To: <87my2w4gy6.fsf@mail.jurta.org> X-Google-Sender-Auth: a1b4361eb3c72775 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:116752 Archived-At: On Sun, Nov 8, 2009 at 7:56 PM, Juri Linkov wrote: >> Currently (thing-at-point 'url) will not reliably return the URL at point in a >> good deal of corner cases; URL's containing `,' being a good case in point. > > Like URL part of `ffap-string-at-point-mode-alist', it counterpart > `thing-at-point-url-path-regexp' contains `,' as well. Indeed, > calling (thing-at-point 'url) on an URL with `,' like > "http://www.google.com/search?q=foo,bar" returns the complete URL. > Perhaps there are other differences, but the comma case seems to be > the same in both. Yes. You are correct. I am mistaking `thing-at-point' w/ `url-get-url-at-point' and var `url-get-url-filename-chars' which do fail. Sorry for the noise. ,---- :FILE /url/url-util.el | (eval-and-compile | (defvar url-get-url-filename-chars "-%.?@a-zA-Z0-9()_/:~=&" | "Valid characters in a URL.")) `---- (require 'url-util) Then evaluate `url-get-url-at-point' for following: http://www.google.com/search?q=foo,bar http://www.vintagefashionguild.org/component/option,com_alphacontent/section,6/cat,59/task,view/id,496/Itemid,100/ http://apex.oracle.com/pls/otn/f?p=2400:1001:3681485306497103::NO::F2400_P1001_BACK_PAGE,F2400_P1001_PUB_MAIL_ID:1010,77177 :SEE-ALSO Sam Steingold's function `get-quotes-pf' with commented gripes pertaining `,' in URL's: (URL `http://clocc.cvs.sourceforge.net/*checkout*/clocc/clocc/src/cllib/gq.lisp') > >Juri Linkov s_P