>>>> "ST" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
ST> What do we return on (native) Windows?
Of course, it's not just Windows where this is an issue. Any filesystem
that doesn't support symbolic links on Unix--like the vfat filesystem on
my USB stick--will result in an error, too.
ST> What should we do? There needs to be a sensible idiom for determining
ST> whether this kind of platform-dependency function works without
ST> memorizing them all.
Is there an established idiom for handling other platform dependencies
(e.g., operations that only work on a window system or on a particular
window system)?
It seems like the 3 main choices are (a) raise a signal, (b) return
something to indicate failure, or (c) ignore the request. An API for
"is operation foo supported" would be required for (c) and helpful for
(a) or (b).
Since Emacs (22.2.1) doesn't document a return value for
make-symbolic-link, I suggest sticking with (a). make-symbolic-link is
already documented to raise a signal in other circumstances.
cheers,
mike
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta