On Sun, Dec 10, 2000 at 03:47:11PM -0500, Sam Steingold wrote:
> > * In message <[EMAIL PROTECTED]>
> > * On the subject of "emacs lisp"
> > * Sent on Sun, 10 Dec 2000 11:41:27 -0500
> > * Honorable "Brenda J. Butler" <[EMAIL PROTECTED]> writes:
> >
> > Is there another mailing list I should be sending this to?
>
> news:gnu.emacs.help
> news:comp.emacs
I don't suppose they have a mail getway? Maybe one day I'll
set up news but not this month.
> > My question is: what is the recommended order to make emacs
> > look in its load directories (what order to put directories
> > in EMACSLOADPATH), and what is the purpose of site-lisp vs
>
> /usr/share/emacs/20.7/lisp is the directory for the lisp files that come
> with your Emacs 20.7 distribution.
> /usr/share/emacs/site-lisp is the directory for the site-specific
> (locally installed, varying from site to site) lisp files
> used with all emacs distributions.
> /usr/share/emacs/20.7/site-lisp is the directory for the site-specific
> lisp files used only with Emacs 20.7.
Ok. It's a little confusing when Debian ships with some .el
and .elc already in site-specific but I'll get used to it.
Is there any advice on which directory among the above should
go first in the search path? My guess is that /usr/share/emacs/site-lisp
should go first, followed by the more-version-specific ones, in order
of less-specific to more-specific.
Or is the order you have above the recommended order?
> > lisp, and the should the emacs-versioned versions of these
> > directories come before or after the generic versions?
>
> (load "xyz") will look for xyz, xyz.elc or xyz.el in all directories in
> `load-path' (and their subdirectories in e21), loading the first one it
> finds.
>
> use (add-to-list 'load-path "/your/path/").
Thank you - handy to know. Although I had copied those .elc
and .el files to the centralized places, so I should have removed
the directory in my home directory from the load path, rather
than leaving it there.
> > I ask all this because I'm trying to install and use bbdb,
> > and it doesn't work. That may be because I have older
> > versions of bbdb lying around... I want to clean it up
> > but am not sure how it's "supposed" to look.
>
> M-x locate-library RET is your friend.
Thanks again!
> > I unzipped and installed the bbdb, and copied the files
> > to where there were already some other bbdb files (/usr/share/emacs
> > site-lisp/bbdb/lisp). I added (require 'bbdb) and (bbdb-initialize)
> > to my .emacs. Now emacs crashes on startup with
> > Fatal error (6).Aborted
>
> Oops! This often means that you load some *.elc compiled with a
> different version. Unfortunately, files compiled with XEmacs cannot be
> loaded into Emacs and vice versa. Often emacs does not nicely detect
> that the file is `bad' and segfaults.
>
> You should definitely try to investigate this further: check which
> statement in .emacs causes the crash, and make sure that all files you
> load have been compiled with the emacs you are using. Then, if the
> crash persists, you should submit a bug report (use M-x report-emacs-bug
> RET).
Here's my whole .emacs:
(global-font-lock-mode)
;(require 'bbdb)
;(bbdb-initialize)
uncommenting (require 'bbdb) causes the fatal crash number 6.
Hmm, I'm getting
[5]+ Aborted emacs
when I try to use byte-compile-file or emacs-lisp-byte-compile
on some of those bbdb .el files.
I won't be submitting any bug reports just now... I don't really
understand the system well enough and I'm pretty close to certain
the problem is my messed up set of lisp directories.
> > ("/usr/share/emacs20/site-lisp/tm"
> > "/usr/share/emacs20/site-lisp/auctex/"
> > "/usr/share/emacs/site-lisp/tm"
> > "/usr/share/emacs/site-lisp/auctex/style"
> > "/usr/share/emacs/20.7/site-lisp/auctex"
> > "/usr/share/emacs/20.7/site-lisp/tm"
>
> this is a bad sign - you have several installations of the same package.
> you should investigate this: maybe they are different versions and you
> are loading some parts from one installation and other from the others.
Thanks for the info, I may just un-install emacs and re-install from
scratch. I had installed Debian 2.1, and then upgraded to 2.2 - perhaps
that's why all the config files/libraries are a mess.
If that doesn't work, I guess I'll get one of those
emacs lisp books...
Well thank you very much for the informative reply. Thanks
to Norbert who also replied. I'll try more stuff later this week.
--
[EMAIL PROTECTED]
I am the "ILOVEGNU" signature virus. Just copy me to your signature.
This email was infected under the terms of the GNU General Public License.
_______________________________________________
bbdb-info mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/bbdb-info