emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insert-string


From: Richard Stallman
Subject: Re: insert-string
Date: Mon, 3 Dec 2001 17:59:16 -0700 (MST)

    Agreed.  That's why I like to have it as a function on the
    hypothetical `after-load-hook'.

Use of hooks can make code more elegant, but also tends to
make it harder to read and understand, because the behavior
of a function is not self-contained any more.

Of course, those two factors vary in magnitude from case to case.
Sometimes using hooks is a good idea.  But generally it is better to
reserve them for user customization, and write standard features using
dedicated code.  In this case, it would be much clearer to implement
the feature with explicit code in Fload than with a hook.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]