[net.emacs] ChangeDirectory

chris%umcp-cs%CSNet-Relay@sri-unix.UUCP (11/15/83)

From:  Chris Torek <chris%umcp-cs@CSNet-Relay>

Works fine for me!  In fact, by a clever trick (read "hack") Emacs
ensures that no matter who does what to its code, it always knows
what directory it's in.  Y'see, what they did is replace the C
library chdir() routine with one that fiddles with the current
directory (as known in abspath.c) and then does a ``syscall (12,
...)'' (or whatever the chdir syscall number is).

And if you don't like that, you can always replace it with ``asm
("chmk $12");''! :-)

Chris