Antonio Freixas writes:
Since I've never worked with either the XEmacs code or the Win32
API, I
don't feel confident or capable of fixing this problem. For my own use,
I can comment out the directory check in the file-writable-p function
and live with some odd errors if the directory really is read-only.
Please do it this way:
#define DONT_CHECK_DIRECTORY_WRITABLE
#if !defined(MS_WINDOWS) || !defined(DONT_CHECK_DIRECTORY_WRITABLE)
/* code that does the wrong thing on windows */
#endif
and send a patch to xemacs-patches. Better yet, if you know how to
hack the nt/config.inc or whatever it's called, put the #define in
there, commented out and with a comment referring to this thread:
<4553A4E1.9070205(a)europa.com>. (If not, just say so; Adrian for one
can help with that, I'm sure.)
If Vin likes it, we can make it a compile-time or run-time option. As
long as it's an option off by default (this is a real problem, but
it's rarely reported), I would support putting it in.
Of course the preferred fix is for somebody who understands the APIs
to fix our code to do the check properly, but this might be acceptable
as a stopgap in 21.4.
Don't forget to cite this post so I don't forget I thought it was a
good idea. :-)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta