POV-Ray : Newsgroups : povray.general : emacs, pov-mode, error loading pov-mode Server Time
5 Nov 2024 11:19:27 EST (-0500)
  emacs, pov-mode, error loading pov-mode (Message 1 to 4 of 4)  
From: skk
Subject: emacs, pov-mode, error loading pov-mode
Date: 7 Mar 2007 03:00:00
Message: <web.45ee7095f9a79f42a8a40fdc0@news.povray.org>
Dear all,

I have a little problem using pov-mode with emacs:
I placed pov-mode.el in the directory /home/skassboh/emacs/site-lisp/.
I added the chunk
----------
;; Povray mode;; Where did you install the POV-mode? Change the path to
whatever
;; it's supposed to be
(setq load-path (cons "/home/skassboh/emacs/site-lisp/" load-path))
;; Set autoloading of POV-mode for these file-types.
(autoload 'pov-mode "pov-mode.el" "PoVray scene file mode" t)
(setq auto-mode-alist
 (append '(("\.pov$" . pov-mode)
    ("\.inc$" . pov-mode)
                 ) auto-mode-alist))
----------
in my .emacs file.

Then the pov-mode should work, whenever I open a buffer ending with .pov
after .emacs is loaded.

Instead I get the following error message from emacs:

Loading /home/skassboh/.emacs...done
(New file)
Loading pov-mode.el (source)...
("/home/skassboh/emacs/site-lisp/" . "/usr/share/emacs/21.3/etc/")
File mode specification error: (wrong-type-argument listp
"/usr/share/emacs/21.3/etc/")


Anybody out there who can help?
Thanks,
S.K.


Post a reply to this message

From: Warp
Subject: Re: emacs, pov-mode, error loading pov-mode
Date: 7 Mar 2007 03:41:21
Message: <45ee7ab1@news.povray.org>
I don't know what could be the problem. I myself have these lines in
my .emacs:

(autoload 'pov-mode "/full/path/to/pov-mode.elc" "PoVray scene file mode" t)
(setq auto-mode-alist
      (append '(("\\.pov$" . pov-mode)
                ("\\.inc$" . pov-mode))
              auto-mode-alist))
(add-hook 'pov-mode-hook 'turn-on-font-lock)

  The .elc file was created by byte-compiling the .el file (should be more
efficient). This happens with "esc x byte-compile-file".

  I'm not using the latest pov-mode.el though. I have an older versions
with some of my own additions.

-- 
                                                          - Warp


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: emacs, pov-mode, error loading pov-mode
Date: 7 Mar 2007 14:25:24
Message: <45ef11a4$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

	Try to replace this line:
> (setq load-path (cons "/home/skassboh/emacs/site-lisp/" load-path))

	With this:
(setq load-path (append "/home/skassboh/emacs/site-lisp/" load-path))

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFF7xGkd0kWM4JG3k8RAtw0AKC39JGLM+ou3Xb+YxXniLfqJs1gDwCgmeCW
H6EZ3zkfIHw+ho+yIXLbc7Y=
=BG4x
-----END PGP SIGNATURE-----


Post a reply to this message

From: skk
Subject: Re: emacs, pov-mode, error loading pov-mode
Date: 8 Mar 2007 03:20:01
Message: <web.45efc676b967ade3a8a40fdc0@news.povray.org>
Hi Jerome,

thanks for your help. I did. But the changes - of course after a reload of
..emacs - wouldn't change anything concerning the error message. Warp sent
me "his" pov-mode. With this, everything works fine.

Thanks anyway,
Sven

=?ISO-8859-1?Q?=22J=E9r=F4me_M=2E_Berger=22?= <jeb### [at] freefr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>  Try to replace this line:
> > (setq load-path (cons "/home/skassboh/emacs/site-lisp/" load-path))
>
>  With this:
> (setq load-path (append "/home/skassboh/emacs/site-lisp/" load-path))
>
>   Jerome
> - --
> +------------------------- Jerome M. BERGER ---------------------+
> |    mailto:jeb### [at] freefr      | ICQ:    238062172            |
> |    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
> +---------------------------------+------------------------------+
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQFF7xGkd0kWM4JG3k8RAtw0AKC39JGLM+ou3Xb+YxXniLfqJs1gDwCgmeCW
> H6EZ3zkfIHw+ho+yIXLbc7Y=
> =BG4x
> -----END PGP SIGNATURE-----


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.