2010/6/13 Václav Haisman <v.hais...@sh.cvut.cz>:

> I am getting the following error right after installation of patched
> Emacs, when it tries to start to let me configure it. The directory
> .emacs.d/server did not exist before I intalled Emacs.
>
> Debugger entered--Lisp error: (error "The directory
> `c:/Users/wilx/AppData/Roaming/.emacs.d/server' is unsafe")

It'd be good to know whether it also fails with an unpatched Emacs, but still...

Most likely, the message means that your .emacs.d/server failed one of
the following two checks:

                   (unless (eq t (car attrs))   ; is a dir?
                     (throw :safe nil))
                   (unless (eql uid (user-uid)) ; is the dir ours?
                     (throw :safe nil))

Assuming it is indeed a directory, that means that the id of the owner
of the directory does not match the user running Emacs, i.e, that

  (nth 2 (file-attributes
"c:/Users/wilx/AppData/Roaming/.emacs.d/server" 'integer))

is different from what (user-uid) returns.

Could you please try both things in your Emacs instance and report
what you find? Also, you could try deleting .emacs.d/server and
recreating it.

    Juanma

Reply via email to