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

Re: space in URL fools w3m-goto-url



> The link
> <li>&nbsp;<a href="http://www.google.com.tw/search?q=%E5%B7%A5%E5%AF%AE+site:forestry.gov.tw&amp;ie=utf-8&amp;oe=utf-8";>http://www.google.com.tw/search?q=工寮&nbsp;site:forestry.gov.tw&amp;ie=utf-8&amp;oe=utf-8</a>
> is rendered
>   *  http://www.google.com.tw/search?q=工寮 site:forestry.gov.tw&ie=utf-8&oe=utf-8
> If one puts the cursor anywhere before the space in the middle,
>   g runs the command w3m-goto-url
> prompts in the minibuffer with just half the URL.

That's what (ffap-string-at-point 'url) does.  I wish
${Emacs}/lisp/ffap.el were working better, though it seems hard
to achieve.

> If one puts the cursor on the space or afterward, the full URL is
> prompted with, correctly.

That's emacs-w3m's work.  It behaves like you type RET there.
(Why don't you do so? ;-)