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

Re: allow me to adjust URL before visiting



>>>>> In [emacs-w3m : No.10389] jidanni@xxxxxxxxxxx wrote:

> Often my cursor is sitting upon a URL, and I want to visit it, but
> would like to modify it a little first before visiting it.

> So I end up doing e.g.,
> u g C-y C-b C-b...C-b C-k <return> (here I have deleted some
> characters at the end of the URL)

> I would rather do
>       X C-b C-b...C-b C-k <return>
> where X is some new key-command.

> Actually the g command already give the user the opportunity to adjust
> the URL before hitting RET. The problem with g is that it acts the
> same whether the cursor is sitting on top of a link or not.

I vote to making the `g' command behave just as `X'.  I.e., to
make it offer the url of the link under the point as the default.
The patch:

--8<---------------cut here---------------start------------->8---
--- w3m.el~	2008-10-08 22:32:07 +0000
+++ w3m.el	2008-10-14 00:41:19 +0000
@@ -8549,6 +8549,7 @@
    (list (w3m-input-url
 	  nil
 	  (or (w3m-active-region-or-url-at-point)
+	      (w3m-anchor)
 	      (when (stringp w3m-current-url)
 		(if (string-match "\\`about://\\(?:header\\|source\\)/"
 				  w3m-current-url)
--8<---------------cut here---------------end--------------->8---

Opinions?

> By the way, C-h m doesn't give the full list of emacs-w3m commands.
> One needs C-h b to see them.

Ok, I'll fix it up some day.

Regards,