5 Cents tip for today [ help ]

Started by newdep, February 27, 2004, 04:24:46 PM

Previous topic - Next topic

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.
-- (define? (Cornflakes))

newdep

#1
* 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))))
-- (define? (Cornflakes))

newdep

#2
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.
-- (define? (Cornflakes))