Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!chris%umcp-cs@CSNet-Relay From: chris%umcp-cs%CSNet-Relay@sri-unix.UUCP Newsgroups: net.emacs Subject: Re: ChangeDirectory() in #85 Message-ID: <13668@sri-arpa.UUCP> Date: Tue, 15-Nov-83 09:14:53 EST Article-I.D.: sri-arpa.13668 Posted: Tue Nov 15 09:14:53 1983 Date-Received: Fri, 18-Nov-83 00:17:31 EST Lines: 13 From: Chris Torek 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