POV-Ray : Newsgroups : povray.unix : emacs pov-mode problem Server Time
31 Oct 2024 12:14:51 EDT (-0400)
  emacs pov-mode problem (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Artis
Subject: emacs pov-mode problem
Date: 26 Apr 2002 11:45:52
Message: <3cc9762e@news.povray.org>
When trying to enter pov-mode I get the following error: "Symbol's value as 
variable is void: pov-item-in-menu"
Using GNU Emacs 21.1.1 & pov-mode 2.6


Post a reply to this message

From: Steve
Subject: Re: emacs pov-mode problem
Date: 26 Apr 2002 14:54:56
Message: <slrnacj8g9.ufp.steve@zeropps.org.uk>
On Fri, 26 Apr 2002 18:46:06 +0300, Artis wrote:
> When trying to enter pov-mode I get the following error: "Symbol's value as 
> variable is void: pov-item-in-menu"
> Using GNU Emacs 21.1.1 & pov-mode 2.6

Strange, I've got an older version of emacs and a newer version of
pov-mode:-)

I've never seen that error before. Try the latest version of pov-mode. 

-- 
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve


Post a reply to this message

From: Artis
Subject: Re: emacs pov-mode problem
Date: 26 Apr 2002 15:16:26
Message: <3cc9a78a@news.povray.org>
> I've never seen that error before. Try the latest version of pov-mode.

Where can I find it?


Post a reply to this message

From: Steve
Subject: Re: emacs pov-mode problem
Date: 26 Apr 2002 15:59:42
Message: <slrnacjcd5.uqv.steve@zeropps.org.uk>
On Fri, 26 Apr 2002 22:16:41 +0300, Artis wrote:
>> I've never seen that error before. Try the latest version of pov-mode.
> 
> Where can I find it?

Don't know the URL off the top of my head, I just used the POV links 
page and did a search on pov-mode.el.  Hope that helps. 

-- 
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve


Post a reply to this message

From: Ken
Subject: Re: emacs pov-mode problem
Date: 26 Apr 2002 22:14:17
Message: <3CCA09C2.CC3D67B3@pacbell.net>
Steve wrote:
> 
> On Fri, 26 Apr 2002 22:16:41 +0300, Artis wrote:
> >> I've never seen that error before. Try the latest version of pov-mode.
> >
> > Where can I find it?
> 
> Don't know the URL off the top of my head, I just used the POV links
> page and did a search on pov-mode.el.  Hope that helps.

http://www.acc.umu.se/~woormie/povray/

-- 
Ken Tyler


Post a reply to this message

From: Artis
Subject: Re: emacs pov-mode problem
Date: 26 Apr 2002 23:55:55
Message: <3cca214b@news.povray.org>
Now I have 2.7, it still gives me the same error.


Post a reply to this message

From: Steve
Subject: Re: emacs pov-mode problem
Date: 27 Apr 2002 08:55:04
Message: <slrnacl7rk.1bo.steve@zeropps.org.uk>
On Fri, 26 Apr 2002 23:36:10 +0300, Artis wrote:
> Now I have 2.7, it still gives me the same error.


Here's what my .emacs file looks like in the part of it that deals with
pov-mode:

(global-font-lock-mode 1 t)

;; Where did you install the POV-mode?
(setq load-path (cons
"/usr/share/emacs/20.5/lisp/pov-mode.elc" load-path))
(autoload 'pov-mode "pov-mode.elc" "PoVray scene file mode" t)

(setq auto-mode-alist
        (append '(("\\.pov$" . pov-mode) 
                  ("\\.inc$" . pov-mode)
                 ) auto-mode-alist))

(custom-set-faces
 '(region ((((class color) (background dark)) (:foreground
"MidnightBlue" :backg
round "light goldenrod")))))

(add-hook 'pov-mode-hook 'turn-on-font-lock)

This may not be the best way to do some of this stuff but it works for
me. 

I have my .emacs file in my home directory, and I have pov-mode.el in 
/usr/share/emacs/20.5/lisp/, and I have compiled pov-mode to its compiled
byte code alternative of pov-mode.elc.   So above you will need to 
change pov-mode.el for pov-mode.elc.

-- 
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve


Post a reply to this message

From: Artis
Subject: Re: emacs pov-mode problem
Date: 27 Apr 2002 09:39:22
Message: <3ccaaa0a@news.povray.org>
Hmmm.. I get the same error and some weird highlighting, but stil in 
fundamental mode.


Post a reply to this message

From: Steve
Subject: Re: emacs pov-mode problem
Date: 27 Apr 2002 11:01:46
Message: <slrnaclfaj.24t.steve@zeropps.org.uk>
On Sat, 27 Apr 2002 16:39:42 +0300, Artis wrote:
> Hmmm.. I get the same error and some weird highlighting, but stil in 
> fundamental mode.
> 

I just type: 

$ emacs somethg.pov &

and it opens a new emacs window, if you run it in an xter or rxvt you
may get somthing different, you certainly won't get the syntax hilighting
in an xter or rxvt. 

I've just tried and I don't get any error messages in an rxvt. 

here is my complete .emacs file, there may be some things in it that 
are needed, it's so long since I set this up that I can't remember.
I've removed some comments, and changed all instances of .elc to .el
for you, you will still need to change tha path to pov-mode.el in this
file to reflect where it is on your system.  And here is an example of 
what it looks like on my system (though I've made some changes to 
.Xdefaults which make some difference to my emacs window but they
shouldnt matter here). http://www.btinternet.com/~zeropps/emacs.png
and here is my .emacs file as explained above: 

;; .emacs initialization file

(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
(pc-selection-mode)
(setq scroll-step 1)
(setq next-line-add-newlines nil)
(setq visible-bell t)
(setq column-number-mode t) 
(setq frame-title-format "%b")
;(custom-set-variables)
(show-paren-mode 1)
(setq make-backup-files nil)
;; put as much syntax highlighting into documents as possible
(setq font-lock-maximum-decoration t)

;;  enable syntax-highlighting
 (global-font-lock-mode 1 t)

;; Where did you install the POV-mode?
(setq load-path (cons "/usr/share/emacs/20.5/lisp/pov-mode.el" load-path))
(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))

(custom-set-faces
 '(region ((((class color) (background dark)) (:foreground "MidnightBlue" :background
"light goldenrod")))))

(add-hook 'pov-mode-hook 'turn-on-font-lock)

;; Make F2 be `save-buffer'
(global-set-key [f2] 'save-buffer)

;; Make F3 be "Exit emacs".
(global-set-key [f3] 'kill-emacs)

;; Make F5 be "Goto line".
(global-set-key [f5] 'goto-line)

;; Make F8 refontify the buffer. 
(global-set-key [f8] 'font-lock-fontify-buffer)

;; Make F9 change case.
(global-set-key [f9] 'downcase-region)

(setq indent-level 'nil)
(setq perl-mode-indent-level 'nil)
(setq comment-start-skip 'nil)
;;(show-paren-mode 1)
(custom-set-variables
 '(cperl-indent-level 0)
 '(cperl-min-label-indent 0)
 '(cperl-close-paren-offset 0))

(put 'downcase-region 'disabled nil)

--
%HAV-A-NICEDAY                    email mailto:ste### [at] zeroppsuklinuxnet
Steve                                web http://www.zeropps.uklinux.net/
                                             or http://start.at/zero-pps
  3:45pm  up 8 days, 12:25,  1 user,  load average: 1.02, 1.26, 1.29


Post a reply to this message

From: Artis
Subject: Re: emacs pov-mode problem
Date: 27 Apr 2002 12:45:29
Message: <3ccad5a9@news.povray.org>
> ;; Where did you install the POV-mode?
> (setq load-path (cons "/usr/share/emacs/20.5/lisp/pov-mode.el" load-path))
> (autoload 'pov-mode "pov-mode.el" "PoVray scene file mode" t)

I had to remove the pov-mode.el from load-path, so emcas could find the 
file. I get full highlight, but emacs stays in fundamental mode and I get 
the error message: "File mode specification error: (void variable 
pov-imenu-in-menu)"


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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