POV-Ray : Newsgroups : povray.unix : Editor : Re: Editor Server Time
1 Jul 2024 12:19:24 EDT (-0400)
  Re: Editor  
From: Ross
Date: 3 Dec 2004 13:43:56
Message: <41b0b3ec$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:copma4$ch2$1@chho.imagico.de...
> Ross wrote:
> >
> > Love emacs for pov editing. Never found out how to do keyword completion
for
> > any mode though. As for lisp hacking, bleh!
> >
> > So, how would one do keyword completion in emacs?
>
> By default i think it is linked to the <ALT>-<TAB> key combination but
> since this is usually caught by the system for other purposes you should
> choose something different - by adding something like:
>
> (define-key pov-mode-map "\M-\r" 'pov-complete-word)
>
> to your ~/.emacs or ~/.xemacs/init.el or whatever init file you use.
> The above line makes the <ALT>-<RETURN> combination do the completition.
>
> Note emacs pov-mode completition is much more powerful than in WinPOV
> since it is context sensitive (it only completes keywords that are
> allowed in the current context).
>
> Christoph
>

Thanks, i'll try this tonight.

I was wondering yesterday about if it would be possible to dynamically
create lists of words that it emacs can complete. For instance if I #define
myBigObject = union {...} could emacs somehow pick up "myBigObject" as an
available keyword for completion.

surely impossible without any lisp knowledge.


Post a reply to this message

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