Hi Alex,
It may very well be that 'cat' cannot handle an URL, but when I try this:
(doc '+ echo)
then I get this:
file:doc/ref_.html#+
It still seems to me that this path is more relative than absolute.
I have made a tiny Mac OS X shell script that opens up a given URL using
my default
Alexander Burger a...@software-lab.de writes:
Hi Alex,
Perhaps the output mode (console cooked vs. raw) is not right? Does it
behave correctly if you start it - without emacs - just from the shell
$ pil +
in the default way?
picolisp does work from the shell - but not 'doc:
Hi Jon,
It may very well be that 'cat' cannot handle an URL, but when I try this:
(doc '+ echo)
then I get this:
file:doc/ref_.html#+
Yes, that's right. 'echo' doesn't try to open its argument(s), but sends
them to stdout.
It still seems to me that this path is more relative than
Hi Thorsten,
Perhaps the output mode (console cooked vs. raw) is not right? Does it
behave correctly if you start it - without emacs - just from the shell
$ pil +
in the default way?
picolisp does work from the shell - but not 'doc:
,-
Hi Alex,
Thanks! By invoking PicoLisp using the global path, I'm now able to view
the docs by specifying my shell script, like this:
(doc '+ openurl.sh)
.. and after having done this:
export BROWSER=openurl.sh
.. I only have to do (doc '+). Very nice!
/Jon
On 11/11/11 2:24 PM, Alexander
Thorsten I'm afraid we're two monkeys in a spaceship with this.
The above code is basically just ripped from Xah Lee's article:
http://xahlee.org/emacs/emacs_lookup_ref.html
Read Xah's stuff carefully and maybe it will help you, note the
(w3m-browse-url myurl) call in his second code listing.