Article View: gnu.emacs.sources
Article #317Re: linenumbers.el compatible with mode-line-format.el
From: Przemek Klosowski
Date: Fri, 08 Jan 1993 21:06
Date: Fri, 08 Jan 1993 21:06
31 lines
1784 bytes
1784 bytes
In article <NJ104.93Jan8114221@bootes.cus.cam.ac.uk> nj104@cus.cam.ac.uk (Neil Jerram) writes:
As someone has pointed out to me, it's very bad practice for the
loading of a file to have side effects like the last two lines of
linenumbers.el --
(or ln-process
(ln-start-process))
-- and makes for trouble if one wants to dump an Emacs including such
code. It would be much better therefore to delete these two lines
from linenumbers.el and insert them in the .emacs file after the
loading instructions.
Actually, I prefer to autoload stuff; this way I don't have to
wait for loading of every macro package that I may or may not use.
I have the following in my .emacs:
(autoload 'linenumbers "linenumbers" "line numbers in mode line" t)
In such case, it is actually better to start ln-process from the file.
I believe that these two lines should be part of (linenumber ) function
(so they will check for the presence of the process every time the
function is called, big deal)
--
przemek klosowski (przemek@rrdstrad.nist.gov)
Reactor Division (bldg. 235), E111
National Institute of Standards and Technology
Gaithersburg, MD 20899, USA
(301) 975 6249
Technical Details
Message-ID:
<PRZEMEK.93Jan8160641@rrdstrad.nist.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!dove!dove.nist.gov!przemekReferences:
<NJ104.93Jan7180237@bootes.cus.cam.ac.uk> <NJ104.93Jan8114221@bootes.cus.cam.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dove!dove.nist.gov!przemek From: przemek@rrdstrad.nist.gov (Przemek Klosowski) Newsgroups: gnu.emacs.sources Subject: Re: linenumbers.el compatible with mode-line-format.el Message-ID: <PRZEMEK.93Jan8160641@rrdstrad.nist.gov> Date: 8 Jan 93 21:06:41 GMT References: <NJ104.93Jan7180237@bootes.cus.cam.ac.uk> <NJ104.93Jan8114221@bootes.cus.cam.ac.uk> Sender: news@dove.nist.gov Distribution: gnu Organization: U. of Maryland/NIST Lines: 31 In-reply-to: nj104@cus.cam.ac.uk's message of 8 Jan 93 11:42:24 GMT