shell unmaintainable

Jerry James Jerry.James at usu.edu
Mon Jun 26 13:11:06 EDT 2006


"Ilya N. Golubev" <gin at mo.msk.ru> wrote:
> Jerry James <Jerry.James at usu.edu> writes:
>
>> Can't you just stick with the officially released packages?
>
> No.  Reasons are too complex.

Okay.

>> I don't see anything else in font-lock.el that makes an obtrusive change
>> to the user's environment.
>
> When something in that package did, did not bother to document it
> fully, just remembered to avoid loading it.  Even 
>
> (add-hook 'find-file-hooks 'font-lock-set-defaults t)
>
> may be quite harmful, depending on how much `font-lock-set-defaults'
> hogs the cpu.  If it hogs much, being <sophisticated> helps little.

Sure.  I just wondered if you knew of anything else that font-lock does
to your environment.  It appears to me that that is the sole effect it
has, other than defining symbols of various kinds, of course.  So if we
fix the hook, I think you will be happy.

>> As for the byte compiling issue, (require 'auto-autoloads) is not the
>> right thing to do, because there are lots of auto-autoloads.el files,
>> one per package in fact.
>
> Right.  Is not core `lisp' directory first in `load-path' when
> `-no-autoloads -vanilla' are specified, when compiling packages in
> batch mode?  If can rely on that, still can do so.  Will load right
> `auto-autoloads.el' in batch mode and have it already loaded in
> regular interactive one.

Okay, but you are already making local modifications.  So I suggest a
compromise.  Why don't you change the (require 'font-lock) to (require
'auto-autoloads) in your own copy, or just delete (require 'font-lock)
altogether and live with the byte compiler warnings.  In the meantime,
I'll see what we can do about the hook change when font-lock is loaded.

>> (2) anybody who needs to compile their own due to
>> maintaining local variations should be sophisticated enough to deal with
>> a change in find-file-hooks.
>
> Disagree.  He may be even sophisticated, but he has time only for his
> own modifications, not for meddling with some nearly unpredictable
> effects like these.  Leaving misfeatures like this is a recipe to have
> actual work never done.

All you have to do is (remove-hook 'find-file-hooks
'font-lock-set-defaults) after font-lock is loaded.
-- 
Jerry James, Assistant Professor        Jerry.James at usu.edu
Computer Science Department             http://www.cs.usu.edu/~jerry/
Utah State University




More information about the XEmacs-Beta mailing list