unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: MON KEY <monkey@sandpframing.com>
To: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: FFAP
Date: Mon, 9 Nov 2009 13:14:15 -0500	[thread overview]
Message-ID: <d2afcfda0911091014vbd8f928jae0f51ce7345bd28@mail.gmail.com> (raw)
In-Reply-To: <87my2w4gy6.fsf@mail.jurta.org>

On Sun, Nov 8, 2009 at 7:56 PM, Juri Linkov <juri@jurta.org> 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




  reply	other threads:[~2009-11-09 18:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-07 18:18 FFAP MON KEY
2009-11-09  0:56 ` FFAP Juri Linkov
2009-11-09 18:14   ` MON KEY [this message]
2009-11-10  7:44     ` FFAP Juri Linkov
2009-11-10 14:03       ` FFAP Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2009-11-06  0:13 find-file-literally-at-point Edward O'Connor
2009-11-06  1:45 ` find-file-literally-at-point Juri Linkov
2009-11-06  4:20   ` FFAP (was: find-file-literally-at-point) Stefan Monnier
2009-11-06  4:41     ` FFAP Miles Bader
2009-11-06 15:20       ` FFAP Stefan Monnier
2009-11-06  4:45     ` FFAP Juri Linkov
2009-11-06  8:50       ` FFAP Eli Zaretskii
2009-11-06 10:37         ` FFAP Juri Linkov
2009-11-06 15:18       ` FFAP Stefan Monnier
2009-11-06 21:19         ` FFAP Juri Linkov
2009-11-07  1:32           ` FFAP Stefan Monnier
2009-11-09  0:52             ` FFAP Juri Linkov
2009-11-09  6:33               ` FFAP Stefan Monnier
2003-09-21 22:34 ffap Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2afcfda0911091014vbd8f928jae0f51ce7345bd28@mail.gmail.com \
    --to=monkey@sandpframing.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).