> Date: Thu, 10 Mar 2011 14:42:16 +0100 > From: "Gamoto" <gam...@bluewin.ch> > Cc: "help-emacs-windows" <help-emacs-windows@gnu.org> > > Nothing else in my site-start.el > 9) deleted .emacs.d > 10) with cmd.exe > emacs -Q > 11) M-x server-start RET > -> server-ensure-safe-dir: The directory `~/.emacs.d/server' is unsafe
Very strange, because this solved the problem for several people. I can suggest one of two ways of solving this: 1) Define a new user on that system, that is not Administrator. (You can make it a member of the Administrators group, if you want that user to have privileges like those of Administrator.) Then log in as that user and install Emacs again. You should not see this problem for that other user. 2) Edit lisp/server.el to modify the function server-ensure-safe-dir as follows. Replace these 2 lines: (unless (eql uid (user-uid)) ; is the dir ours? (throw :safe nil)) with these 3 lines: (unless (or (eql uid (user-uid)) ; is the dir ours? (and (eql uid 544) (eql (user-uid) 500))) (throw :safe nil)) Then byte-compile server.el (you can use the "Byte Compile this file" item in the Emacs-Lisp menu from the menu bar), and restart Emacs.