[gnu.emacs.bug] providing features

gaynor@porthos.rutgers.edu (Silver) (10/28/88)

require and provide are a clean way of making sure things are loaded when you
want them.  However, they are not used nearly as much as they could be.  Is
there any kind of reorganization of the libraries going on for the next version?
I recommend that an effort be made to rely upon require and provide for
conditional loading of material.  They ARE rather nice...

For instance, when I want to modify prolog-mode-map in my .emacs (or something
else for which a hook isn't really applicable), it is much cleaner to say

  (require 'prolog)
  (define-key mumble ...)

than

  (or (boundp 'prolog-mode-map)
      (load "prolog"))
  (define-key mumble ...)

Regards, [Ag] gaynor@rutgers.edu

gaynor@rutgers.rutgers.edu (Silver) (11/06/88)

Ok, so I didn't solicit responses, and I only got one, but here goes:

montanaro@sprite.steinmetz.ge.com responded:
> Some time ago (4-5 months ago, last time everyone was clamoring for
> require/provide) I made the necessary changes and posted the diffs for 18.51.
> I don't know why FSF didn't pick them up.  All they had to do was run patch.
> Unfortunately, I've deleted both the diff file and the modified sources.  (I
> try pretty hard not to make sweeping changes to the sources, but convince FSF
> to fold them into their official releases.)

Regards, [Ag] gaynor@rutgers.edu