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

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



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.