home *** CD-ROM | disk | FTP | other *** search
- /* Rexx macro to load a "man page" into mg */
-
- options results
-
- /* Get the page name, and see if it exists */
- 'rexx-request "Manual entry: "'
- if rc ~= 0 then do
- 'rexx-display ""'
- return
- end
-
- file = 'docs:'result
- if ~exists(file) then do
- 'rexx-display "No manual page for' result'"'
- exit
- end
-
- /* It does, so clear a buffer for it and read it in */
- manbuf = '"*Manual_Entry*"'
- 'switch-to-buffer-other-window' manbuf
- 'not-modified'
- 'kill-buffer' manbuf
- 'switch-to-buffer' manbuf
- 'insert-file' file
-