From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14140 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jos=E9_A=2E_Romero_L=2E?= Newsgroups: gmane.emacs.gnus.user Subject: Re: w3m display buffer Date: Thu, 18 Nov 2010 15:46:06 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <87d3q3x1dp.fsf@engels.HistoricalMaterialism.info> <4b45736f-a5c7-467c-b7b4-1836a392ee5e@d8g2000yqf.googlegroups.com> <87mxp6l7ej.fsf@engels.HistoricalMaterialism.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291955952 9801 80.91.229.12 (10 Dec 2010 04:39:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:39:12 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 10 05:39:03 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQul4-0001Hj-Rk for gegu-info-gnus-english@m.gmane.org; Fri, 10 Dec 2010 05:39:03 +0100 Original-Received: from localhost ([127.0.0.1]:39093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQul4-0003Eu-6Z for gegu-info-gnus-english@m.gmane.org; Thu, 09 Dec 2010 23:39:02 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!r29g2000yqj.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 66 Original-NNTP-Posting-Host: 87.207.186.43 Original-X-Trace: posting.google.com 1290123966 8104 127.0.0.1 (18 Nov 2010 23:46:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 18 Nov 2010 23:46:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r29g2000yqj.googlegroups.com; posting-host=87.207.186.43; posting-account=mkEKGAoAAACAV2vhv5r9WHXWqsdL_niD User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100917 Firefox/3.6.10 (Swiftfox),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84974 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:28:08 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14140 Archived-At: On 18 Lis, 21:10, Haines Brown wrote: (...) > Just realized I'm in the "gnus" group, not "gnu" emacs group. I really > must move my question about emacs and w3m elsewhere. Yes, I guess you should. > > At present, in order to display a html file (I have a different emacs > seesion for when I want to edit it), I do > > =A0 =A0 =A0 =A0 ! w3m filename.html > > There are two problems with this. Most of these html files have an eight > or twn digit file name, and copying it is subject to error and takes a > little time. Second, Sunrise-Commander appears as two panes, but beneat > these panes is a scratch buffer (Lisp Interaction) mode. When I run the > above command, the scratch buffer is divided into two panes, and the > right one (Shell Command Output) displays the w3m rendering of the file. Not the best solution IMHO -- that won't allow you to follow the links. > First, I need to get rid of the scratch buffer altogether, for I don't > use it for this session of emas. Doing that might for the (Shell Command > Output) to occupy the right Sunrise-Commander pane, which is fine. Give the PopViewer extension a try, then. > Also I have to figure out how to run w3m on the current html file with > simply a RET, like I do with PDF. There is a browse-url.el that might > help, but I don't know if it is compatible with Sunrise-Commander. Maybe what you need is a "magic handler" -- something like this: (defun my-html-handler (operation &rest args) (let ((inhibit-file-name-handlers (cons 'my-html-handler (and (eq inhibit-file-name-operation operation) inhibit-file-name-handlers))) (inhibit-file-name-operation operation)) (when (and (eq operation 'insert-file-contents) (fboundp 'w3m) (y-or-n-p "Browse in w3m? ")) (kill-buffer (current-buffer)) (apply 'w3m (list (car args))) (error "handled by w3m")) (apply operation args))) (add-to-list 'file-name-handler-alist '("\\.html?\\'" . my-html- handler)) > Actually a third problem is that I don't see that I'm using > emacs-w3m. Other than a faster loading, I don't see what it is supposed > to do beyond whast the above command does. (...) Did you install one of w3m-el or w3m-el-snapshot in debian? Cheers, -- Jos=E9 A. Romero L. escherdragon at gmail "We who cut mere stones must always be envisioning cathedrals." (Quarry worker's creed)