bennett@uahtitan.ai.mit.edu (Mark Bennett) (12/20/90)
Hello again - A couple days ago I posted a problem I was having when using M-x manual-entry. The results I get back are unreadable. Lars Henrik Mathiesen <thorinn@diku.dk> suggested that the entries in the /usr/cat? directories may be in compressed format. This turned out to be completely correct. My question now is "has anybody else found a good solution to this problem"? I already have (autoload 'uncompress-while-visiting "uncompress") in my .emacs file, but I guess since the manual entries don't end in .Z this does not work. I also thought to change the variable manual-program from "/bin/man" to some kind of uncompress, but when I use M-x set-variable manual-program is not recognized; however it is recognized when I do C-h v. I don't understand this. PLEASE RECALL the domain is missing from the FROM in my mail header, so please use the address below. Thanks Mark J. Bennett Center for Microgravity and Materials Research The University of Alabama in Huntsville Huntsville, AL 35899 (205)895-6889 bennett@uahtitan.uah.edu (129.66.23.6)
aks@HUB.UCSB.EDU (Alan Stebbens) (12/21/90)
> A couple days ago I posted a problem I was having when using M-x > manual-entry. The results I get back are unreadable. > > Lars Henrik Mathiesen <thorinn@diku.dk> suggested that the entries in > the /usr/cat? directories may be in compressed format. This turned out > to be completely correct. > > My question now is "has anybody else found a good solution to this > problem"? You could modify "manual-entry" to examine the first few bytes of the file to Do The Right Thing. I think the function to look at is "manual-nuke-nroff-bs", which is called after inserting the manual entry. It should look at the first few bytes, to see if there is any clue about the compression code; if so, run the buffer through the "uncompress" filter, otherwise do the usual thing. Alan Stebbens <aks@hub.ucsb.edu>