help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: browse url function and w3m


From: Kevin Rodgers
Subject: Re: browse url function and w3m
Date: Mon, 17 Nov 2003 12:32:07 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Harry Putnam wrote:

Kevin Rodgers <address@hidden> writes:


Harry Putnam wrote:


How can I set `browse-url-browser-function' to `w3m-browse-url'
but only when html-helper-mode is invoked?

Just a guess:


(add-hook 'html-helper-mode-hook
          (lambda ()
            (set (make-local-variable 'browse-url-browser-function)
                 'w3m-browse-url)))


Good guess Kevin thanks.  I see there is another problem involved and
maybe pushing my luck here but here goes:

With the above in place, the effect is for w3m to browse the subject
file (in working html buffer) when one calles `browse-url-of-file'.
Only problem is that it pulls it up in a *w3m* buffer you then have to
switch to.

I don't see a function in w3m commands that will make it appear in
another window or even frame, can you take a guess at how to make the
browsed file appear in an immediately accessable window or even for
focus to switch to wherever it is being browsed?

Try setting w3m-pop-up-windows to nil and w3m-popup-frames to t.  Or add
"*w3m*" to special-display-buffer-names.


--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]