emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another issue with thingatpt


From: Werner LEMBERG
Subject: Re: Another issue with thingatpt
Date: Thu, 28 Dec 2006 07:39:40 +0100 (CET)

>    Here's another problematic URL:
> 
>      http://mousai.kanji.zinbun.kyoto-u.ac.jp/ids-find?components=&U+20207;
> 
>    thingatpt ignores the final `;'.
> 
>        Werner
> 
> According to RFC3986 (aka STD066), this is wrong; [...]
>
>    It may not be possible to find a tradeoff between RFC compliance
> and parsing dwimmery that would satisfy everybody.  Since stripping
> off trailing punctuation is useful behavior (ISTR it's worked this
> way for a while now), I would recommend against changing it now.
> However, a case could be made for making thing-at-point and
> ffap-string-at-point consistent.  Perhaps "!:;.," would be best?
> This is just the union of the two sets but without the dubious
> inclusion of "?".

I suggest to handle `;' and friends as part of the URL if it is on a
line of its own, this is, if the line starts with `http://' or a
sibling of it, and is followed by whitespace and a newline.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]