unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* w3m navigation
@ 2008-05-02 10:12 Lorenzo Isella
  2008-05-02 20:18 ` David Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Lorenzo Isella @ 2008-05-02 10:12 UTC (permalink / raw)
  To: help-gnu-emacs

Dear All,
I am giving a try to the w3m emacs web-browser. I am finding it pretty
interesting.
In order to change from a web page to another, I tried out all the
suggestions in:

http://emacs-w3m.namazu.org/info/emacs-w3m_13.html#SEC13

However, every time I try to visit a new web page,  I have to modify
the url of the current page, whereas I would like to be able to type
in directly the url I would like to visit. I am sure that for someone
experienced this has to be a one-liner in the .emacs file, or maybe
there is something I am misunderstanding.
Many thanks for any suggestions.
Cheers

Lorenzo




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: w3m navigation
  2008-05-02 10:12 Lorenzo Isella
@ 2008-05-02 20:18 ` David Hansen
  0 siblings, 0 replies; 3+ messages in thread
From: David Hansen @ 2008-05-02 20:18 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 2 May 2008 12:12:13 +0200 Lorenzo Isella wrote:

> However, every time I try to visit a new web page,  I have to modify
> the url of the current page, whereas I would like to be able to type
> in directly the url I would like to visit. I am sure that for someone
> experienced this has to be a one-liner in the .emacs file, or maybe
> there is something I am misunderstanding.

Is hitting C-k to much work?

(defun dh-w3m-goto-url ()
  (interactive)
  (let ((w3m-current-url ""))
    (call-interactively #'w3m-goto-url)))

(define-key w3m-mode-map (kbd "g") #'dh-w3m-goto-url)

seems to do it.

David





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: w3m navigation
       [not found] <mailman.11074.1209723141.18990.help-gnu-emacs@gnu.org>
@ 2008-05-03  0:15 ` Tim X
  0 siblings, 0 replies; 3+ messages in thread
From: Tim X @ 2008-05-03  0:15 UTC (permalink / raw)
  To: help-gnu-emacs

"Lorenzo Isella" <lorenzo.isella@gmail.com> writes:

> Dear All,
> I am giving a try to the w3m emacs web-browser. I am finding it pretty
> interesting.
> In order to change from a web page to another, I tried out all the
> suggestions in:
>
> http://emacs-w3m.namazu.org/info/emacs-w3m_13.html#SEC13
>
> However, every time I try to visit a new web page,  I have to modify
> the url of the current page, whereas I would like to be able to type
> in directly the url I would like to visit. I am sure that for someone
> experienced this has to be a one-liner in the .emacs file, or maybe
> there is something I am misunderstanding.
> Many thanks for any suggestions.
> Cheers
>
> Lorenzo
>

What I do is hit 'g', type in the new url or paste in a new one and then
hit C-k to kill the rest of the line. When you hit 'g', you are put at
the beginning of the line with the current url as default. Hitting C-k
kills the line from where the cursor is to the end. Therefore, anything
you type is inserted before the 'default' url, so C-k clears it. Its
similar behavior to firefox when you hit C-l, in which case the current
url is highlighted and you hit del to clear it - with w3m instead of
hitting del to clear it, you hit C-k.

Tim

-- 
tcross (at) rapttech dot com dot au


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-03  0:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.11074.1209723141.18990.help-gnu-emacs@gnu.org>
2008-05-03  0:15 ` w3m navigation Tim X
2008-05-02 10:12 Lorenzo Isella
2008-05-02 20:18 ` David Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).