Path: utzoo!utgpu!watmath!uunet!bu-cs!att!cbnewsh!hoswjc!wjc From: wjc@hoswjc.ATT.COM (Bill Carpenter) Newsgroups: gnu.emacs.bug Subject: expand-file-name tilde problem Message-ID: Date: 16 Sep 89 17:37:51 GMT Sender: bill@cbnewsh.ATT.COM Reply-To: wjc@ho5cad.ATT.COM (Bill Carpenter) Distribution: gnu Organization: AT&T Bell Laboratories Lines: 20 [GNUemacs 18.55 on sun4, sunOS 4.0.3c] As unlikely as this seems, I came across a file that had accidentally been created with a leading tilde in its name. When I tried to visit it in GNUemacs, I got a message like this: "~foo" is not a registered user I believe that this ultimately comes from "expand-file-name", which is called by a ton of other file-manipulation functions. This behavior seems right for filename completion use, but in a few minutes of fiddling around, I couldn't find a way to visit the file at all, so something is probably needed here. Perhaps a good solution would be to make "expand-file-name" give the error if being used interactively, but treat the tilde literally in non-interactive use. Or, give the error and then drive on taking things literally in interactive mode. -- Bill Carpenter att!ho5cad!wjc or attmail!bill