From owner-ntemacs-users@june  Tue Sep 24 07:26:26 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" "24" "September" "1996" "08:49:22" "-0500" "Milt Epstein" "epstein@cd.com" nil "35" "Re: Greetings and question about ~" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id HAA22211 for <voelker@june.cs.washington.edu>; Tue, 24 Sep 1996 07:26:25 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id HAA22513 for <voelker@joker.cs.washington.edu>; Tue, 24 Sep 1996 07:26:24 -0700
Received: from beltway (beltway.cd.com [204.217.30.66]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id GAA19102 for <ntemacs-users@cs.washington.edu>; Tue, 24 Sep 1996 06:39:03 -0700
Received: from bif.cd.com by beltway (5.x/SMI-SVR4) 	id AA02336; Tue, 24 Sep 1996 08:38:11 -0500
Received: from localhost by bif.cd.com (4.1/SMI-4.1) 	id AA29101; Tue, 24 Sep 96 08:49:23 CDT
In-Reply-To: <9609171705.AA13557@bif.cd.com>
Message-Id: <Pine.SUN.3.94.960924084744.28340A-100000@bif>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
From: Milt Epstein <epstein@cd.com>
Sender: epstein@cd.com
To: ntemacs-users@cs.washington.edu
Subject: Re: Greetings and question about ~
Date: Tue, 24 Sep 1996 08:49:22 -0500 (CDT)

On Tue, 17 Sep 1996, Milt Epstein wrote:

> Hi.  I've been using ntemacs for about a month now, and I just
> subscribed to this list.  So I might bombard the list with a bunch of
> questions over the next week or so as I try to get a bunch of things
> resolved :-).
> 
> Firstly, it looks like I'm having problems with my setting of "~".
> For example, when I evaluate (e.g. in *scratch*):
> 
> (expand-file-name "~")
> 
> I get:
> 
> "c:/users/milte/users/milte/"
> 
> But when I try:
> 
> (expand-file-name "~/emacs")
> 
> I get:
> 
> "c:/users/milte/emacs"
[ ... ]

I didn't really get any response on this.  Could maybe a few people at
least try this to see whether they get similar problematic output?
Thanks.

Milt Epstein
Software Engineer
Central Data Corporation
epstein@cd.com
WWW: http://www.cd.com/
FTP: ftp.cd.com

From 103311.463@compuserve.com  Tue Sep 24 08:06:32 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" "24" "September" "1996" "11:05:37" "-0400" "Mike Reiss" "103311.463@compuserve.com" nil "15" "Bash in emacs on NT" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from mhaal.inhouse.compuserve.com (mhaal.inhouse.compuserve.com [149.174.64.108]) by june.cs.washington.edu (8.7.5/7.2ju) with ESMTP id IAA24303 for <voelker@cs.washington.edu>; Tue, 24 Sep 1996 08:06:31 -0700
Received: from mreiss (mreiss.inhouse.compuserve.com [149.174.72.51]) by mhaal.inhouse.compuserve.com (8.7.4/8.7.3) with SMTP id LAA07401 for <voelker@cs.washington.edu>; Tue, 24 Sep 1996 11:06:30 -0400 (EDT)
Message-ID: <3247F8C1.48E8@compuserve.com>
Reply-To: 103311.463@compuserve.com
Organization: CompuServe
X-Mailer: Mozilla 3.0Gold (WinNT; I)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Mike Reiss <103311.463@compuserve.com>
To: voelker@cs.washington.edu
Subject: Bash in emacs on NT
Date: Tue, 24 Sep 1996 11:05:37 -0400

Geoff,

I jumped from your 19.30 version to your 19.34 version of emacs.  I run
bash inside emacs as my shell.  One of my favorite tricks is file name
(and directory name) completions.  I had to make a few changes to the
lisp libraries in 19.30 to get this working correctly.  In 19.34 I have
tried several things but nothing is working for me.  It looks like the
lisp libraries have been changed to handle the DOS command.com syntax
with the \ separators.  I tried changing some of that in comint and
shell but with no luck.  If you have any hints or pointers I'd be glad
to here them.

Sorry for the inconvenience, but thanks for any help you can manage.

mike

From owner-ntemacs-users@june  Tue Sep 24 10:45:36 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" "24" "September" "1996" "18:00:14" "+0100" "Andrew Innes" "andrewi@harlequin.co.uk" nil "42" "Re: Greetings and question about ~" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id KAA05480 for <voelker@june.cs.washington.edu>; Tue, 24 Sep 1996 10:45:35 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id KAA21806 for <voelker@joker.cs.washington.edu>; Tue, 24 Sep 1996 10:45:33 -0700
Received: from holly.cam.harlequin.co.uk (holly.cam.harlequin.co.uk [193.128.4.58]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id KAA02322 for <ntemacs-users@cs.washington.edu>; Tue, 24 Sep 1996 10:00:54 -0700
Received: from propos.long.harlequin.co.uk by holly.cam.harlequin.co.uk; Tue, 24 Sep 1996 18:00:18 +0100
Received: from woozle.long.harlequin.co.uk (woozle [193.128.93.77]) by propos.long.harlequin.co.uk (8.6.12/8.6.12) with SMTP id SAA17286; Tue, 24 Sep 1996 18:00:14 +0100
Message-Id: <199609241700.SAA17286@propos.long.harlequin.co.uk>
In-Reply-To: <9609171705.AA13557@bif.cd.com> (epstein@cd.com)
From: Andrew Innes <andrewi@harlequin.co.uk>
To: epstein@cd.com
Cc: ntemacs-users@cs.washington.edu
Subject: Re: Greetings and question about ~
Date: Tue, 24 Sep 1996 18:00:14 +0100

On Tue, 17 Sep 96 12:05:43 CDT, epstein@cd.com (Milt Epstein) said:
>Hi.  I've been using ntemacs for about a month now, and I just
>subscribed to this list.  So I might bombard the list with a bunch of
>questions over the next week or so as I try to get a bunch of things
>resolved :-).
>
>Firstly, it looks like I'm having problems with my setting of "~".
>For example, when I evaluate (e.g. in *scratch*):
>
>(expand-file-name "~")
>
>I get:
>
>"c:/users/milte/users/milte/"
>
>But when I try:
>
>(expand-file-name "~/emacs")
>
>I get:
>
>"c:/users/milte/emacs"
>
>(getenv "HOME")
>
>returns:
>
>"\\users\\milte\\"
>
>I'm using tcsh, if that matters.
>
>Anyone know what's going on here?  I'd like my "~" back.
>Thanks.

You need to set HOME to be a fully-qualified pathname.  In particular,
you are missing a drive letter.  Without that, expand-file-name gets a
bit confused, and gives unusual results as you've noticed.

AndrewI

PS. It might also be that you're using an older version of Emacs - in
19.31 a number of bugs in expand-file-name were fixed.

From owner-ntemacs-users@june  Wed Sep 25 16:18:34 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" "25" "September" "1996" "15:34:55" "-0700" "David Dyck" "dcd@tc.fluke.com" nil "33" "Re: Greetings and question about ~" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id QAA23104 for <voelker@june.cs.washington.edu>; Wed, 25 Sep 1996 16:18:34 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id QAA16772 for <voelker@joker.cs.washington.edu>; Wed, 25 Sep 1996 16:18:32 -0700
Received: from fluke.com (fluke.com [206.138.179.6]) by june.cs.washington.edu (8.7.5/7.2ju) with ESMTP id PAA19242 for <ntemacs-users@cs.washington.edu>; Wed, 25 Sep 1996 15:35:09 -0700
Received: by gateway.fluke.com id <36017>; Wed, 25 Sep 1996 15:33:55 -0700
X-Sender: dcd@jd
In-Reply-To: <x7u3sm8vam.fsf@unilab.dfci.harvard.edu>
Message-Id: <96Sep25.153355pdt.36017@gateway.fluke.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
From: David Dyck <dcd@tc.fluke.com>
To: Richard Pieri <ratinox@unilab.dfci.harvard.edu>
cc: ntemacs-users@cs.washington.edu
Subject: Re: Greetings and question about ~
Date: Wed, 25 Sep 1996 15:34:55 -0700

On Wed, 25 Sep 1996, Richard Pieri wrote:

> From: Richard Pieri <ratinox@unilab.dfci.harvard.edu>
> Okay, just for the record, the tilde is *part* of a shortcut used by
> *some* Unix shells.  It does not exist on its own; it must be followed
> by either a slash or a user name.

I use ksh on Solaris, and it's man page reports

 "A ~ by itself, or in front of a /, is replaced by $HOME."

Bash also states the the user name may be omitted.
 "If this login name is the null string, the tilde  is
       replaced with the value of the parameter HOME"

While the csh manual does not state that the tilde
may stand alone, in operation, that is what it does.

Richard is right, that this is shell specific, and that not all
shells do it (sh doesn't)

 The function "Fexpand_file_name" in fileio.c
in the sources for emacs-19.30 that I have handy
has comments that where it can spot a /* ~ by itself */,
but then right near that comment is code
that states:
#ifdef DOS_NT
          /* Problem when expanding "~\" if HOME is not on current drive.
             Ulrich Leodolter, Wed Jan 11 10:20:35 1995 */
		.....
#endif

The emacs c source code looks for a drive letter in HOME environment variable

