all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: MON KEY <monkey@sandpframing.com>
Cc: emacs-devel@gnu.org
Subject: Re: FFAP
Date: Tue, 10 Nov 2009 09:44:04 +0200	[thread overview]
Message-ID: <87my2vggvv.fsf@mail.jurta.org> (raw)
In-Reply-To: <d2afcfda0911091014vbd8f928jae0f51ce7345bd28@mail.gmail.com> (MON KEY's message of "Mon, 9 Nov 2009 13:14:15 -0500")

>> 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.

So this is a third package to get an URL at point :)

> ,---- :FILE /url/url-util.el
> | (eval-and-compile
> |   (defvar url-get-url-filename-chars "-%.?@a-zA-Z0-9()_/:~=&"
> |     "Valid characters in a URL."))
> `----

Let's compare allowed URL characters for all of them:

ffap        "--:=&?$+@-Z_[:alpha:]~#,%;*"
thingatpt   "[^]\t\n \"'<>[^`{}]*[^]\t\n \"'<>[^`{}.,;]+"
url-util    "-%.?@a-zA-Z0-9()_/:~=&"

> Then evaluate `url-get-url-at-point' for following:
>
> http://www.vintagefashionguild.org/component/option,com_alphacontent/section,6/cat,59/task,view/id,496/Itemid,100/

This URL is from Joomla that uses commas to separate keywords.
Commas are also frequent in Drupal where they separate tags.
So I think a comma should be added to `url-get-url-filename-chars'.

> :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')

`,' in URLs are very common nowadays.

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2009-11-10  7:44 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   ` FFAP MON KEY
2009-11-10  7:44     ` Juri Linkov [this message]
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

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

  git send-email \
    --in-reply-to=87my2vggvv.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=monkey@sandpframing.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.