Re: emacs configuration error
Brought to you by:
ovidiu
From: Ovidiu P. <ov...@xe...> - 2001-07-30 16:52:45
|
Hi John, On Mon, 30 Jul 2001 11:02:30 -0500, John Sharp <js...@ti...> wrote: > Hi, I attempted to setup my .emacs file for xslt mode. > > After installing everything and starting Emacs I get:- > > Error in init file: Symbol's function definiation is void: mapc > > I tried to look through the list archive but got an error > from the search page:- > > htsearch detected an error. Please report this to the returned > matches > > webmaster of this site. The error message is: > > Unable to read configuration file > '/bigassraid/htdig//conf/10811.conf' > > > As per the install instrucitons, here is my (reduced) .emacs file:- > > (mapc (lambda (x) > (pushnew (expand-file-name x) load-path)) > (list "~/emacs" > "~/emacs/xslt-process-2.0/lisp" > "~/emacs/elib-1.0" > "~/emacs/speedbar-0.14beta1")) > > (autoload 'xslt-process-mode "xslt-process" "Emacs XSLT processing" t) > (add-hook 'sgml-mode-hook 'xslt-process-mode) > (add-hook 'xml-mode-hook 'xslt-process-mode) > (add-hook 'xsl-mode-hook 'xslt-process-mode) Oops, I forgot about this one. mapc is defined in the "cl" package, so what you need is a "require", like this: (require 'cl) (mapc (lambda (x) (pushnew (expand-file-name x) load-path)) (list "~/emacs" "~/emacs/xslt-process-2.0/lisp" "~/emacs/elib-1.0" "~/emacs/speedbar-0.14beta1")) Or you can use Carsten's suggestion too, and not use mapc and pushnew at all. Regards, -- Ovidiu Predescu <ov...@cu...> http://orion.nsr.hp.com/ (inside HP's firewall only) http://sourceforge.net/users/ovidiu/ (my SourceForge page) http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff) |