[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m-goto-url with URL containing colons?
- From: Thorsten Jolitz <tjolitz@xxxxxxxxx>
- Date: Fri, 25 Jul 2014 16:33:33 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 12347
- References: <87tx6tgwld.fsf@xxxxxxxxx> <87sim8bxaz.fsf@xxxxxx> <87ha25q2q9.fsf@xxxxxxxxx> <871tt967ws.fsf@xxxxxx> <87d2ctpr4b.fsf@xxxxxxxxx> <87vbql4kyv.fsf@xxxxxx>
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