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

Re: w3m-goto-url with URL containing colons?



Michael Heerdegen <michael_heerdegen@xxxxxx> writes:

> Thorsten Jolitz <tjolitz@xxxxxxxxx> writes:
>
>> no no - using 'g' or 'G' in emacs-w3m lets you either enter a URL or a
>> google search string. If its a valid URL, its visited, otherwise input
>> is used for a google search. 
>
> Ok, I understand now.
>
> The problem is that "orgmode :ARCHIVE:" is considered a valid url by
> `w3m-canonicalize-url' -- because after evaluating
>
>   (w3m-string-match-url-components url)
>
> (match-beginning 1) yields non-nil.

ok, I see.

> Dunno if this is expected; but I tried several browsers, and w3m is the
> only one that behaves this way in this case.

Personnally I find this behaviour unexpected - something that is clearly
not a valid url is treated a such, causing an error. 
>
>    Who can help - should the behavior be changed???
>
>
> @Thorsten: In any case you can request google search directly, enter
>
>     gg: orgmode :ARCHIVE:
>
> into the minibuffer.  You can configure `w3m-uri-replace-alist' to
> replace the "gg:" prefix with something easier to type, like just "g".

Thanks, thats a nice tip! Did not know about it ...

-- 
cheers,
Thorsten