www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/05/12:03:41

Date: Sun, 5 Apr 1998 15:54:57 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael R Weholt <awnbreel AT panix DOT com>
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: <Pine.SUN.3.91.980405155439.5976Y-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019