From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Harrington Newsgroups: gmane.emacs.help Subject: Re: emacs 23.2 OS X file path issue Date: Tue, 8 Jun 2010 22:38:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <36da89d7-e0cb-4e7e-9de5-0ba74c7d525a@32g2000prq.googlegroups.com> References: <4f9b02dc-b62c-4058-835f-2d7c8915d5f1@t34g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291930069 5987 80.91.229.12 (9 Dec 2010 21:27:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 21:27:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 22:27:43 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQo1d-00086T-BN for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:27:41 +0100 Original-Received: from localhost ([127.0.0.1]:60707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQo1b-0004Xo-V8 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 16:27:40 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!32g2000prq.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 71.92.75.174 Original-X-Trace: posting.google.com 1276061926 17992 127.0.0.1 (9 Jun 2010 05:38:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 9 Jun 2010 05:38:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 32g2000prq.googlegroups.com; posting-host=71.92.75.174; posting-account=xfMTrQkAAAD-HPrfgim6nqC9QeH3WDkp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178753 X-Mailman-Approved-At: Thu, 09 Dec 2010 16:15:08 -0500 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:77087 Archived-At: On Jun 7, 11:22=A0pm, Joseph Harrington wrote: > I have not posted to this group before but am looking for help with an > Emacs issue. I am running Emacs 23.2.1 on a Mac with OS X 10.6.3. When > I call Emacs from the terminal to open a file that is not in the > current directory, Emacs opens an extra file with the path jumbled. > Let me give an example. At the terminal, I enter the following: > > mkdir a; touch a/b; /Applications/Emacs.app/Contents/MacOS/Emacs a/b > > This causes Emacs to open two files in separate buffers: "a/b" and "a/ > a/b". This behavior occurs when I remove my ~/.emacs file, but it does > not occur when I use the -Q, --debug-init, or -nw options. I often > call Emacs from the terminal to open multiple files in different > directories, so this is a bit of a nuisance. > > Thanks in advance for any advice on getting around this problem, > Joe I found a workaround to this problem and figured I'd post it in case anyone else experiences similar issues. I now pass all file arguments through "readlink -f" before giving them to Emacs, which replaces each path/file with absolute paths. I put the following in my .bashrc: function emacs () { /Applications/Emacs.app/Contents/MacOS/Emacs `readlink -f "$@"` ;} Cheers, Joe