* Re: emacs 23.2 OS X file path issue
[not found] <4f9b02dc-b62c-4058-835f-2d7c8915d5f1@t34g2000prd.googlegroups.com>
@ 2010-06-09 5:38 ` Joseph Harrington
2010-06-10 1:13 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Harrington @ 2010-06-09 5:38 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: emacs 23.2 OS X file path issue
2010-06-09 5:38 ` emacs 23.2 OS X file path issue Joseph Harrington
@ 2010-06-10 1:13 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2010-06-10 1:13 UTC (permalink / raw
To: help-gnu-emacs
> I found a workaround to this problem and figured I'd post it in case
> anyone else experiences similar issues.
You might also want to report this problem with M-x report-emacs-bug so
that the workaround might become unneeded in the future. It may also
result in a real fix you can use right away.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-10 1:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4f9b02dc-b62c-4058-835f-2d7c8915d5f1@t34g2000prd.googlegroups.com>
2010-06-09 5:38 ` emacs 23.2 OS X file path issue Joseph Harrington
2010-06-10 1:13 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.