home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / sources / 978 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.5 KB  |  67 lines

  1. Newsgroups: gnu.emacs.sources
  2. Path: sparky!uunet!boulder!colorado.edu!mdb
  3. From: mdb@colorado.edu (Mark Borges)
  4. Subject: Re: Compressed Info??
  5. In-Reply-To: neal@ctd.comsat.com's message of 27 Jan 93 14:46:51 GMT
  6. Message-ID: <MDB.93Jan28080633@rossby.colorado.edu>
  7. Sender: news@colorado.edu (The Daily Planet)
  8. Nntp-Posting-Host: rossby.colorado.edu
  9. Organization: CIRES, University of Colorado
  10. References: <NEAL.93Jan27094651@neal.ctd.comsat.com>
  11. Date: 28 Jan 93 08:06:33
  12. Comments: Hyperbole mail buttons accepted, v3.06.
  13. Lines: 52
  14.  
  15. >>>>> Regarding Compressed Info??; neal@ctd.comsat.com (Neal Becker)
  16. >>>>> adds:
  17. Neal> Sure would like to have it!  I use crypt++ and Dave Gillespie's
  18. Neal> info version 1.05.  I tried gzip'ing an info, and and changes
  19. Neal> the localdir to say e.g.,
  20. Neal> rcs: (rcs.info.z)
  21. Neal> But it didn't work.  (complained something about node top).
  22.  
  23. If you have access to Dave Gillespie's info elisp source
  24. ;; Info package for Emacs  --  Dave Gillespie's version 1.05 of 3/8/92.
  25. ;; Copyright (C) 1985, 1986 Free Software Foundation, Inc.
  26. there may be a relatively simple solution. I found that by modifying
  27. the Info-suffix-list to: 
  28.  
  29. (defvar Info-suffix-list '( (".info" . nil)
  30.                 (".Z" . "uncompress -c %s")
  31.                 (".z" . "gunzip")
  32.                 (".zip" . "gunzip")
  33.                 (".Y" . "unyabba")
  34.                 (".info.Z" . "uncompress -c %s")
  35.                 (".info.z" . "gunzip")
  36.                 (".info.zip" . "gunzip")
  37.                 (".info.Y" . "unyabba") )
  38.   "List of file name suffixes and associated decoding commands.
  39. Each entry should be (SUFFIX . STRING); if STRING contains %s, that is
  40. changed to name of the file to decode, otherwise the file is given to
  41. the command as standard input.  If STRING is nil, no decoding is done.")
  42.  
  43. works fine. Entries in localdir are of the form:
  44.  
  45. * AWK: (gawk). Awk (v2.14).
  46. * GZIP: (gzip). Zip/Unzip, a compress replacement (v0.8.1).
  47.  
  48. and the files in the directory where info is set to look are:
  49. % ls diff* gawk*
  50. diff.info-1.z  diff.info.z    gawk.info-3.z  gawk.info-6.z  gawk.info.z
  51. diff.info-2.z  gawk.info-1.z  gawk.info-4.z  gawk.info-7.z
  52. diff.info-3.z  gawk.info-2.z  gawk.info-5.z  gawk.info-8.z
  53.  
  54. I'm not an expert, but this seems simple enough and works fine for me.
  55. I've yet to run across a case where it fails, but I haven't tested it
  56. exhaustively. Does anyone see any potential problems? 
  57.  
  58.  
  59.  
  60.  
  61.  
  62. --
  63.  Mark Borges <mdb@noaacrd.Colorado.EDU>      | 
  64.  CIRES, Campus Box 449                         |  voice: (303) 492 - 0612
  65.  University of Colorado, Boulder, CO 80303   |    fax: (303) 492 - 2468
  66.  
  67.