Date: Sun, 5 Apr 1998 15:54:57 +0300 (IDT) From: Eli Zaretskii To: Michael R Weholt cc: djgpp AT delorie DOT com Subject: Re: emacs: tilde in a directory name In-Reply-To: <6g6sum$1pg_002@mrw.panix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 5 Apr 1998, Michael R Weholt wrote: > I'm trying to open a file that is in a directory that has a leading > tilde. For example, I'm trying to get into: > > f:/Apache/htdocs/~dirname > > bash gets there OK. But emacs is refusing to take the tilde literally. Tilde is special in file names: "~foo" means the home directory of user named `foo'. This is usually a feature of a shell, but Emacs emulates it as well. You want to turn this feature off, which isn't easy. There is no simple work-around for this problem in Emacs 19.34. One way is to use `dired' on the parent directory, like this: `C-x d f:/Apache/htdocs RET' then choose `~dirname' from the directory display. This works for me. Emacs 20 doesn't have this problem anymore, but solving it in Emacs 19 requires extensive changes to the file-handling code.