all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ChristopherMBalz@StanfordAlumni.org (Christopher M. Balz)
Subject: Re: w3m gives 'Wrong type argument: stringp, nil" error
Date: 6 Jun 2003 00:49:02 -0700	[thread overview]
Message-ID: <343aeada.0306052349.30a7acad@posting.google.com> (raw)
In-Reply-To: 3EDFB296.2090702@yahoo.com

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 <ihs_4664@yahoo.com> 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 <ihs_4664@yahoo.com> 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 <ihs_4664@yahoo.com> 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.

  reply	other threads:[~2003-06-06  7:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-03 21:39 w3m gives 'Wrong type argument: stringp, nil" error Christopher M. Balz
2003-06-03 21:45 ` Chris McMahan
2003-06-04 16:35   ` Christopher M. Balz
2003-06-04 17:06     ` Kevin Rodgers
2003-06-05  4:19       ` Christopher M. Balz
2003-06-05 14:54         ` Chris McMahan
2003-06-05 17:05           ` Hugh Lawson
2003-06-05 19:28           ` Christopher M. Balz
2003-06-05 21:13             ` Kevin Rodgers
2003-06-06  7:49               ` Christopher M. Balz [this message]
2003-06-05  4:33       ` Christopher M. Balz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=343aeada.0306052349.30a7acad@posting.google.com \
    --to=christophermbalz@stanfordalumni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.