home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / sources / 928 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.7 KB  |  46 lines

  1. Path: sparky!uunet!dove!dove.nist.gov!przemek
  2. From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
  3. Newsgroups: gnu.emacs.sources
  4. Subject: Re: linenumbers.el compatible with mode-line-format.el
  5. Message-ID: <PRZEMEK.93Jan8160641@rrdstrad.nist.gov>
  6. Date: 8 Jan 93 21:06:41 GMT
  7. References: <NJ104.93Jan7180237@bootes.cus.cam.ac.uk>
  8.     <NJ104.93Jan8114221@bootes.cus.cam.ac.uk>
  9. Sender: news@dove.nist.gov
  10. Distribution: gnu
  11. Organization: U. of Maryland/NIST
  12. Lines: 31
  13. In-reply-to: nj104@cus.cam.ac.uk's message of 8 Jan 93 11:42:24 GMT
  14.  
  15. In article <NJ104.93Jan8114221@bootes.cus.cam.ac.uk> nj104@cus.cam.ac.uk (Neil Jerram) writes:
  16.  
  17.    As someone has pointed out to me, it's very bad practice for the
  18.    loading of a file to have side effects like the last two lines of
  19.    linenumbers.el --
  20.  
  21.    (or ln-process
  22.        (ln-start-process))
  23.  
  24.    -- and makes for trouble if one wants to dump an Emacs including such
  25.    code.  It would be much better therefore to delete these two lines
  26.    from linenumbers.el and insert them in the .emacs file after the
  27.    loading instructions.
  28.  
  29. Actually, I prefer to autoload stuff; this way I don't have to
  30. wait for loading of every macro package that I may or may not use.
  31. I have the following in my .emacs:
  32.  
  33.   (autoload 'linenumbers "linenumbers" "line numbers in mode line" t)
  34.  
  35. In such case, it is actually better to start ln-process from the file.
  36. I believe that these two lines should be part of (linenumber ) function
  37. (so they will check for the presence of the process every time the 
  38. function is called, big deal)
  39. --
  40.             przemek klosowski (przemek@rrdstrad.nist.gov)
  41.             Reactor Division (bldg. 235), E111
  42.             National Institute of Standards and Technology
  43.             Gaithersburg, MD 20899,      USA
  44.  
  45.             (301) 975 6249
  46.