help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Autoload a major mode


From: Dieter Demerre
Subject: Re: Autoload a major mode
Date: Thu, 7 Dec 2000 13:11:53 +0100 (CET)

-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 7 Dec 2000, [iso-8859-1] "B?nninger, Dominik" wrote:

...
> following lines in my .emacs:
> 
> (autoload 'matlab-mode "m-mode")
> (setq auto-mode-alist (cons '("\.m$" . matlab-mode) auto-mode-alist))
> 
> I put the file m-mode.el in the directory  .../emacs/site-lisp. When I open
> emacs with a m-file, he will return the error message:
> 
> File mode specification error: (error "Autoloading failed to define function 
> matlab-mode")
> 
> Can anyone tell me, what I did wrong?

At least you should byte-compile-file your m-mode.el file (to create the
m-mode.elc file). 

Then probably you also should invoke  update-file-autoloads within your
m-mode.el file so the mode-functions are available and *macs knows where
to find everything.

Hope this helps... (at least that's about how it works(ed) for me).

******* Groetjes vanwege ***** Greetings From *******
Dieter Demerre - http://www.angelfire.com/de/ddemerre
  ddemerre@acm.org - ext.dieter.demerre@siemens.be

Although this private and confidential e-mail has been sent 
to you through a personal Siemens account, it does NOT 
represent any official opinion of Siemens.

If you are not the intended recipient of this e-mail and 
have received it in error, please notify the sender by 
replying with 'received in error' as the subject and then 
delete it from your mailbox.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBOi9+j65coohL2ygZAQE2DAQAuRrzPKrShAwuE4WPsbypI5E4kNQyFszv
gAU+MVLEI75PGOqk/Ze/JZnCsSFKSVEe3DD9ruOUoJCIIG6sGpFA0xUzxxSfV4oV
JJowchhYvABhRjdQraPFUACy+o3DJTcGHQs+uunwhPnL97WbMNXdsjQWtUVGfOmd
wNIJdCVd6JU=
=fGwq
-----END PGP SIGNATURE-----





reply via email to

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