5 Cents tip for today [ help ]

Q&A's, tips, howto's
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

5 Cents tip for today [ help ]

Post by newdep »

If under linux or Bsd you want a help started, use the "init.lsp" file.
a simple edit like below will give you a direct local help.

;; start links web-browser and loads the manual
;; a function called (help) is now global
(define-macro (help)
( ! "/usr/local/bin/links /usr/share/doc/newlisp/newlisp_manual.html" )
(global 'help))

Norman.

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

* tuned version, caused by good defined html help page ;-)
* i.e. (help map) or (help net-accept)

;; loads the manual for unix
;; usage: (help function)

(if (< (last (sys-info)) 5)
(begin
(define-macro (help _func)
(! (string (append "/usr/local/bin/links /usr/share/doc/newlisp/newlisp_manual.html#" (string _func) )) )
(global 'help))))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

One disadvantage of the (help) is that the special functions like <>!@# must
be converted to html, so the (help <)..etc will fail for now...

Norman.

Locked