home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34src.zip
/
me3
/
mutt
/
builtin
/
help.mut
< prev
next >
Wrap
Text File
|
1995-01-14
|
2KB
|
80 lines
;; A "help" system built on top of the doc system.
;; C Durland 6/93 Public Domain
(const WEB-PACKAGE "web")
(defun
help { (pop-help 0) }
pop-help (int n) HIDDEN
{
(if (not (load-code WEB-PACKAGE FALSE TRUE))
{
(msg "Sorry - I can't load the help system.")
(done)
})
(query-menu n (floc help-do-it)
">Help Topics"
"Quick Reference"
"ME Documentation"
"ME Packages"
"Regular Expressions"
"ME Mutt Extensions"
"Mutt Language Documentation"
"Commands and Key Bindings"
"Apropos"
"Mode Documentation"
"Your choice"
)
}
help-do-it (int n)(string name) HIDDEN
{
(string xxx)
(switch n
1 (web-manual "qref.doc")
2 (web-manual "me3.doc")
3 (web-manual "package.doc")
4 (web-manual "regexp.doc")
5 (web-manual "me3mutt.doc")
6 (web-manual "mutt2.doc")
7
{
(current-window (describe-bindings))
(web-mode)
}
8 { (ask-user)(apropos) }
9
{
(ask-user)
(xxx (concat (ask "Name of mode"
(if (== "" (major-mode))
": "
(concat " [return for " (major-mode) "]: ")))))
(if (== "" xxx)
{
(if (!= "" (major-mode))
(web-word (concat (major-mode) "-mode")))
(done)
})
(web-word (concat xxx "-mode"))
}
10 { (ask-user)(web-word) }
)
}
)
(defun
need-help (int type)
{
(if (== 0 (HELP)) (done)) ;; Don't want help
(if (load-code WEB-PACKAGE FALSE TRUE)
{
(pop-help 7)
}
{
(describe-bindings)
})
}
)