From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: PovRay Mode will not work?? Date: Sun, 24 Jun 2007 02:55:26 -0000 Organization: http://groups.google.com Message-ID: <1182653726.745720.310330@o61g2000hsh.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1182656441 24177 80.91.229.12 (24 Jun 2007 03:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2007 03:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 24 05:40:39 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I2Ixl-0002ch-Pq for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jun 2007 05:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2Ixl-0004tV-9y for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jun 2007 23:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o61g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 189.6.212.239 Original-X-Trace: posting.google.com 1182653726 12718 127.0.0.1 (24 Jun 2007 02:55:26 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 24 Jun 2007 02:55:26 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o61g2000hsh.googlegroups.com; posting-host=189.6.212.239; posting-account=pG57fA0AAADtQ-4h1MyvjXjZpSNZC0zj Original-Xref: shelby.stanford.edu gnu.emacs.help:149645 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45232 Archived-At: On Jun 23, 3:23 pm, Christian Herenz wrote: > Hi, > I want do create some PovRay Files with emacs, so I found a major mode > for it:http://www.acc.umu.se/~woormie/povray/ > It will not work :( > I always get the error (when M-x pov-mode) > "Symbol's value as variable is void: data-directory-list", I also get > that, when I eval the buffer with pov-mode.el :( > What is wrong here? Maybe tthis mode is incompatible with emacs 22.1.1 ?? > Do you know other modes for editing POV files? > Greetz, > Christian I had the same problem and found a simpler mode that worked for me. Here it is: http://groups.google.com/group/gnu.emacs.sources/browse_thread/thread/2411ba1b12a792db/abad1dff367bcdf0?lnk=gst&q=Kevin+K.+Lewis+pov+mode&rnum=1#abad1dff367bcdf0 Also, this function below saves me a lot of time: (defun pov-render-this-file () "Render current file on povray and display results." (interactive) (let ((my-buf (current-buffer))) (basic-save-buffer) (shell-command (concat "povray +W1024 +H768 +X +A0.1 +R4 +P " (buffer- file-name))) (switch-to-buffer my-buf) (delete-other-windows)) (message "Image rendered.")) I force saving the current buffer so I don't accidentally render an old version because I forgot saving, and also have a couple lines so that the "Shell Command Output" buffer is not displayed (that was bothering me, ideally it would show only when there were errors). The only line that matters is the shell-command, of course... HTH, weber