home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / emacs / gnus / 1424 < prev    next >
Encoding:
Text File  |  1992-12-21  |  4.1 KB  |  92 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!rutgers!concert!borg!brownp
  2. From: brownp@cs.unc.edu (Peter Brown)
  3. Newsgroups: gnu.emacs.gnus
  4. Subject: Re: Setting info pages (was Re: Followup: changing the string indicating included text)
  5. Message-ID: <BROWNP.92Dec21111130@bizet.cs.unc.edu>
  6. Date: 21 Dec 92 16:11:30 GMT
  7. References: <BGARWOOD.92Dec7143058@sngldsh.cv.nrao.edu>
  8.     <AKIY.92Dec8163731@diva.cs.titech.ac.jp>
  9.     <SSAMMY.92Dec9100351@hunter-04.cs.strath.ac.uk>
  10.     <BCR.92Dec13171539@hfl3sn02.cern.ch>
  11.     <SSAMMY.92Dec21113349@fleming-03.cs.strath.ac.uk>
  12. Sender: news@cs.unc.edu
  13. Distribution: gnu
  14. Organization: UNC Department of Computer Science
  15. Lines: 74
  16. In-reply-to: ssammy@cs.strath.ac.uk's message of 21 Dec 92 11:33:49 GMT
  17.  
  18. In article <SSAMMY.92Dec21113349@fleming-03.cs.strath.ac.uk> ssammy@cs.strath.ac.uk (Paul Sammy 4th Year iE/CES) writes:
  19.  
  20.    >Regarding Re: Followup: changing the string indicating included text; bcr@cernapo.cern.ch (Bill Riemers) adds:
  21.  
  22.     > Great!  Much better than all those spaces. 
  23.  
  24.     > I'm sort of new to this game...  How do I actually get emacs to list the
  25.     > supercite help file when I type "^hi" so I can figure out how to clean-up
  26.     > the rest of the citation.
  27.  
  28.     [... details omitted ...]
  29.  
  30.     I suggest that you 
  31.  
  32.        1)create a directory ~/lib/emacsinfo, 
  33.        2)set `Info-directory' to point to it, 
  34.        3)copy dir from the default dir into the `Info-directory'
  35.        4)edit dir to look at the default directory for all the info
  36.          pages execept for the supercite one.
  37.  
  38.     [... some more details omitted ...]
  39.  
  40.     This method is crummy because you need to keep regular checks on 
  41.     what the sysop adds to the original dir file.
  42.  
  43.     I'd be surprised if there isn't an easier way than this: because I have 
  44.     had to install the info pages in my system I don't know any other way.
  45.  
  46.     Paul
  47.  
  48. Paul's hunch is right on; there is an easier way.  Try using Dave
  49. Gillespie's version of info (which I understand is the info from Emacs
  50. 19); it's available for anonymous FTP from
  51. archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/modes/info.el.Z.
  52. Among other useful things, it uses an Info-directory-list in place of
  53. the Info-directory variable; this list functions a lot like a path.
  54. So say you have an article on GNUS, and you put it in your own private
  55. info directory (Paul called it ~/lib/emacsinfo, so let's stick with
  56. that name).  You make sure that your info file has the same filename
  57. as the one in the system info directory (you can figure this name out
  58. by looking at the reference, the way Paul said), and you add your
  59. ~/lib/emacsinfo to the Info-directory-list in front of the system
  60. directory.  (The easy way to do that is to put
  61.  
  62. (setq Info-directory-list (cons (expand-file-name "~/lib/emacsinfo")
  63.                 Info-directory-list))
  64.  
  65. in your .emacs.)  Now the reference from the system dir file will
  66. bring up *your* article, because that's the first one info finds as it
  67. runs down the Info-directory-list.  Note you don't care what the sysop
  68. does to the original dir file, as long as he doesn't change the name
  69. of his GNUS article.
  70.  
  71. Take another case: suppose you have some info articles in your
  72. ~/lib/emacsinfo directory that have no counterparts in the system info
  73. directory - maybe on SuperCite, for example.  Now, you're still using
  74. the system dir file, which has no reference to SuperCite.  So you make
  75. a file ~/lib/emacsinfo/localdir, and you put a SuperCite reference in
  76. that file, using the standard info format Paul talked about.  This
  77. file will be appended to the system dir file when you go into info,
  78. and you'll see your SuperCite reference sitting down at the bottom;
  79. you use it like any other info reference.  Again, you don't care what
  80. the sysop does to the system dir file (as long as he doesn't add a
  81. reference to SuperCite - if he does that, you're back to the case in
  82. the previous paragraph).
  83.  
  84. Hope this helps - mail me if any of this gives you trouble.
  85.  
  86. Peace,
  87. --Peter
  88. --
  89. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  90. "O come, O come, Emmanuel, / And ransom captive Israel
  91.  That mourns in lonely exile here / Until the Son of God appear."
  92.