help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs 23.2 OS X file path issue


From: Joseph Harrington
Subject: Re: emacs 23.2 OS X file path issue
Date: Wed, 08 Dec 2010 15:12:35 -0000
User-agent: G2/1.0

On Jun 7, 11:22 pm, Joseph Harrington <joseph.harringto...@gmail.com>
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]