[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m-goto-url with URL containing colons?
- From: Michael Heerdegen <michael_heerdegen@xxxxxx>
- Date: Fri, 25 Jul 2014 15:38:32 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 12346
- References: <87tx6tgwld.fsf@xxxxxxxxx> <87sim8bxaz.fsf@xxxxxx> <87ha25q2q9.fsf@xxxxxxxxx> <871tt967ws.fsf@xxxxxx> <87d2ctpr4b.fsf@xxxxxxxxx>
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.
Dunno if this is expected; but I tried several browsers, and w3m is the
only one that behaves this way in this case.
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".
Regards,
Michael.