From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Lisp code to expand /~ and // but not env vars? Date: Mon, 03 Oct 2005 01:16:03 +0200 Message-ID: <43406A33.1080107@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128296546 22693 80.91.229.2 (2 Oct 2005 23:42:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2005 23:42:26 +0000 (UTC) Cc: Help-Gnu-Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 01:42:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMDSb-0003NN-Ad for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Oct 2005 01:41:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMDSa-0002jq-Rm for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Oct 2005 19:41:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMDOx-0001VW-Vt for help-gnu-emacs@gnu.org; Sun, 02 Oct 2005 19:37:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMDOq-0001RA-M3 for help-gnu-emacs@gnu.org; Sun, 02 Oct 2005 19:37:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMDOp-000163-Od for help-gnu-emacs@gnu.org; Sun, 02 Oct 2005 19:37:44 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMD3v-0007Dy-M2 for help-gnu-emacs@gnu.org; Sun, 02 Oct 2005 19:16:07 -0400 Original-Received: from [192.168.123.121] (83.249.202.31) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 4332AC7800239FCD; Mon, 3 Oct 2005 01:16:03 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Drew Adams In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29868 Archived-At: Drew Adams wrote: >I'm looking for Lisp code that will expand /~ and // in a file name, just as > > > Not quite what you are looking for, but maybe you can use (expand-file-name "" "~/")?