Re: emacs server fails to start with large uid on unix

2007-01-19 Thread Benjamin Rutt
Stefan Monnier monnier at iro.umontreal.ca writes: Please install that fix too. Please also look at the Lisp Manual docs for file-attributes, in case that also need fixing. I installed all my fixes. I believe it should now work, although I'm sure there are still many spots left were

Re: emacs server fails to start with large uid on unix

2007-01-19 Thread Richard Stallman
Thanks for making us aware of the problem. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: emacs server fails to start with large uid on unix

2007-01-12 Thread Stefan Monnier
Please install that fix too. Please also look at the Lisp Manual docs for file-attributes, in case that also need fixing. I installed all my fixes. I believe it should now work, although I'm sure there are still many spots left were similar problems can show up. Stefan

Re: emacs server fails to start with large uid on unix

2007-01-08 Thread Stefan Monnier
Does this fix it? Yes, it fixes part of the problem. But the next bug is revealed when I use your fix: Debugger entered--Lisp error: (error The directory /tmp/emacs800154870 is unsafe) Does the patch below help? Stefan --- orig/lisp/server.el +++ mod/lisp/server.el @@ -298,7

Re: emacs server fails to start with large uid on unix

2007-01-08 Thread Benjamin Rutt
Stefan Monnier monnier at iro.umontreal.ca writes: Does the patch below help? Not really. The following expression shows the problem: (let ((dir server-socket-dir)) (setq dir (directory-file-name dir)) (message %s (file-attributes dir))) When eval'd it comes up with: (t 2 263283958 705

Re: emacs server fails to start with large uid on unix

2007-01-08 Thread Richard Stallman
I don't know if the patch below fixes your problem, but it should at least solve one part. Should I install it? Does your change makes `format' work, in cases which currently fail? If so, definitely please install it. I proposed a fix in server.el. Does your patch make my fix

Re: emacs server fails to start with large uid on unix

2007-01-08 Thread Stefan Monnier
I don't know if the patch below fixes your problem, but it should at least solve one part. Should I install it? Does your change makes `format' work, in cases which currently fail? Yes, it makes it work when displaying with %d a float value that lies between the largest elisp

Re: emacs server fails to start with large uid on unix

2007-01-08 Thread Stefan Monnier
Does the patch below help? Not really. Actually it doesn't yet, but it will once the file-attributes part gets fixed. I think that number is too large for an emacs int. So the problem is in `file-attributes' then, I think. --BR Indeed, I believe the additional patch below may get us

Re: emacs server fails to start with large uid on unix

2007-01-08 Thread Richard Stallman
I think that number is too large for an emacs int. So the problem is in `file-attributes' then, I think. --BR Indeed, I believe the additional patch below may get us closer. Please install that fix too. Please also look at the Lisp Manual docs for file-attributes, in case that

emacs server fails to start with large uid on unix

2007-01-07 Thread Benjamin Rutt
I have a large unix uid: $ id uid=800154870(ruttbe) gid=705(www) it seems the emacs server of pretest 92 can't cope with this, possibly b/c of the limit on emacs lisp's integer size. perhaps calc should be used, as it can handle bignums? also `file-attributes' may have a problem with this

Re: emacs server fails to start with large uid on unix

2007-01-07 Thread Richard Stallman
Does this fix it? *** server.el 27 Nov 2006 21:05:42 -0500 1.124 --- server.el 07 Jan 2007 23:00:49 -0500 *** *** 198,204 (defvar server-name server) (defvar server-socket-dir ! (format /tmp/emacs%d (user-uid))) (defun server-log (string optional