From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ChristopherMBalz@StanfordAlumni.org (Christopher M. Balz) Newsgroups: gmane.emacs.help Subject: Re: w3m gives 'Wrong type argument: stringp, nil" error Date: 6 Jun 2003 00:49:02 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <343aeada.0306052349.30a7acad@posting.google.com> References: <343aeada.0306031339.15e390bb@posting.google.com> <343aeada.0306040835.ad5b36f@posting.google.com> <343aeada.0306042019.3ede2c7e@posting.google.com> <343aeada.0306051128.2a691cc6@posting.google.com> <3EDFB296.2090702@yahoo.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054885892 20867 80.91.224.249 (6 Jun 2003 07:51:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2003 07:51:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 09:51:29 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19OBzp-0005Lo-00 for ; Fri, 06 Jun 2003 09:50:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19OBzn-0002ZC-Ch for gnu-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2003 03:50:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 78 Original-NNTP-Posting-Host: 158.252.214.50 Original-X-Trace: posting.google.com 1054885743 4787 127.0.0.1 (6 Jun 2003 07:49:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 6 Jun 2003 07:49:03 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114203 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10697 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10697 Having set LIB (export) in .bashrc (/usr/local/lib/w3m/cgi-bin), and for good measure set it as a Windows system environment variable, w3m will browse local file directories with a normal file url as will any other standard browser: file:///c:/ and so on just great. This is because it uses 'dirlist.cgi' to do so, and can find said CGI program. I saw someone using 'dirlist.bat' in their .emacs file w3m section, and wonder if that would work. But, CGI still doesn't work from within Emacs (user permissions are correct). So so far I can't get local directory listings via w3m in Emacs (I haven't tried 'dirlist.bat'). See the following URL (all one line): http://216.239.33.100/search?q=cache:5RORbQf_lNIJ:emacs-w3m.namazu.org/ml/msg04213.html+w3m+cgi+LIB+emacs&hl=en&ie=UTF-8 Most people keep a lot of HTML files outside of their local web server root, and thus, those files can't be served over http unless they are moved to somewhere under the server root. Unfortunately, merely putting in a Cygwin symbolic link doesn't work for w3m on Windows. So until Clemens Fischer or some such beneficent soul gets CGI to work in emacs-w3m, I'll have to move the Javadoc. - CB Kevin Rodgers wrote in message news:<3EDFB296.2090702@yahoo.com>... > Christopher M. Balz wrote: > > > Finally, does anyone know how to point w3m to its cgi, or, more > > generally, how to just get it to work with local files? My main > > motivation for using w3m is to access Javadoc and other types of HTML > > doc very fast -- it works g-r-r-reat for that as an Emacs HTML > > browser. But when I try to browse a local file directory, I get > > "Cannot load c:/usr/local/lib/w3m/dirlist.cgi" or "Cannot retrieve > > URL". > > Does it work if you specify a valid URL > > file://localhost/c:usr/local/lib/w3m/dirlist.cgi > > or whatever is correct for file names with drive letters. Kevin Rodgers wrote in message news:<3EDFB296.2090702@yahoo.com>... > Christopher M. Balz wrote: > > > Finally, does anyone know how to point w3m to its cgi, or, more > > generally, how to just get it to work with local files? My main > > motivation for using w3m is to access Javadoc and other types of HTML > > doc very fast -- it works g-r-r-reat for that as an Emacs HTML > > browser. But when I try to browse a local file directory, I get > > "Cannot load c:/usr/local/lib/w3m/dirlist.cgi" or "Cannot retrieve > > URL". > > Does it work if you specify a valid URL > > file://localhost/c:usr/local/lib/w3m/dirlist.cgi > > or whatever is correct for file names with drive letters. Kevin Rodgers wrote in message news:<3EDFB296.2090702@yahoo.com>... > Christopher M. Balz wrote: > > > Finally, does anyone know how to point w3m to its cgi, or, more > > generally, how to just get it to work with local files? My main > > motivation for using w3m is to access Javadoc and other types of HTML > > doc very fast -- it works g-r-r-reat for that as an Emacs HTML > > browser. But when I try to browse a local file directory, I get > > "Cannot load c:/usr/local/lib/w3m/dirlist.cgi" or "Cannot retrieve > > URL". > > Does it work if you specify a valid URL > > file://localhost/c:usr/local/lib/w3m/dirlist.cgi > > or whatever is correct for file names with drive letters.