"Drew Adams" <[EMAIL PROTECTED]> writes: > I got the doremi-frm.el from > http://www.emacswiki.org/cgi-bin/emacs/doremi-frm.el by > clicking on the download, which opened a new page with the file in it, > then I copy and past into the scratch buffer, saved it in > /usr/share/emacs/site-lisp/doremi-frm.el, put (require 'doremi-frm) > in the first line of my .emacs > > M-x load-file ~/.emacs cann't open load file: doremi > did I do something wrong? > > No, you did everything right. But not enough. Emacs-Lisp libraries often > require other libraries. In this case, `doremi-frm.el' requires `doremi.el'. > In fact, it also requires other libraries, besides `doremi.el'. > > You will see this comment in doremi-frm.el: > > ;; Library `doremi-frm' requires these libraries: > ;; > ;; `avoid', `doremi', `faces', `faces+', `frame-cmds', `frame-fns', > ;; `hexrgb', `icomplete', `icomplete+', `misc-fns', `mwheel', `ring', > ;; `ring+', `strings', `thingatpt', `thingatpt+'. > > Not all of those libraries are absolutely required, however. To determine > what you absolutely need: > > - Look for `(require...)' in doremi-frm.el. > - Load those files. > - Look in those files for `(require...)'. > - Etc. > > Any `(require...)' of this form: (require 'something nil t) is *optional* - > the library is not absolutely required. It is the third arg `t' that signals > this. > > In `doremi-frm.el', for example you see this: > > (require 'doremi) > (require 'hexrgb) > (require 'ring+) > (require 'frame-fns) > (require 'faces+) > > (require 'frame-cmds nil t) > (unless (fboundp 'read-number)(require 'strings nil t)) > > (eval-when-compile (require 'cl)) > > The first group of `require's are mandatory, for `doremi-frm.el' to work. > > The second group (frame-cmds, strings) are optional. > > Both of these groups are my libraries - they are not included with standard > Emacs. So, you will need to download all libraries in the first group, for > `doremi-frm.el' to work. (And some of those libraries might require you to > download other libraries.) You do not need to download `frame-cmds.el' or > `strings.el'. > > The last `require' is a compile-time-only require, and library `cl.el' is a > standard Emacs library, so you do not need to download anything for this > dependency. > > HTH.
thanks, is there a way to automate the handling of all those dependencies so that I don't have to do it by hand? _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs