From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: browse url function and w3m Date: Tue, 18 Nov 2003 11:23:43 -0600 Organization: Still searching... Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3FB9009B.8090105@yahoo.com> <3FB92237.3000509@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069176333 16110 80.91.224.253 (18 Nov 2003 17:25:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2003 17:25:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 18:25:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AM9bQ-0006Dd-01 for ; Tue, 18 Nov 2003 18:25:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMAYP-0001GS-Vl for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2003 13:26:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AMAXp-0001FH-UV for help-gnu-emacs@gnu.org; Tue, 18 Nov 2003 13:25:45 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AMAXJ-00012x-Nm for help-gnu-emacs@gnu.org; Tue, 18 Nov 2003 13:25:44 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMAXJ-00012i-4e for help-gnu-emacs@gnu.org; Tue, 18 Nov 2003 13:25:13 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AM9Zs-00032i-00 for ; Tue, 18 Nov 2003 18:23:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AM9Zq-00032Y-00 for ; Tue, 18 Nov 2003 18:23:46 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AM9Zq-00047b-00 for ; Tue, 18 Nov 2003 18:23:46 +0100 Original-Lines: 63 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:P/qh9HtV2EprBui9w74QXk8BOpo= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14354 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14354 Kevin Rodgers writes: > Harry Putnam wrote: > >> Kevin Rodgers 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. Well, the first part fails: M-: (setq w3m-pop-up-windoes nil) M-: (setq w3m-pop-up-frames t) Then `browse-url-of-file' still retrieves the content of html file to *w3m* buffer. >>From *Messages*: The content (file:/var/www/html/index.html) has been retrieved in *w3m* M-: (setq special-display-buffer-names "*w3m*") Above is ASTERISKw3mASTERISK or (setq special-display-buffer-names "w3m") no asterisks Neither of those cause the buffer to be displayed either. It stll shows up in *w3m* undisplayed. M-: (setq special-display-buffer-names ' "*w3m*") Doesn't do it either. Finally: Eval: (set-default special-display-regex (w3m)) Actually works but causes an error too. eval: Wrong type argument: symbolp, "w3m" I'm having serious trouble getting the lisp right.