all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joseph Harrington <joseph.harrington.2@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs 23.2 OS X file path issue
Date: Tue, 8 Jun 2010 22:38:46 -0700 (PDT)	[thread overview]
Message-ID: <36da89d7-e0cb-4e7e-9de5-0ba74c7d525a@32g2000prq.googlegroups.com> (raw)
In-Reply-To: 4f9b02dc-b62c-4058-835f-2d7c8915d5f1@t34g2000prd.googlegroups.com

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	other threads:[~2010-06-09  5:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4f9b02dc-b62c-4058-835f-2d7c8915d5f1@t34g2000prd.googlegroups.com>
2010-06-09  5:38 ` Joseph Harrington [this message]
2010-06-10  1:13   ` emacs 23.2 OS X file path issue Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36da89d7-e0cb-4e7e-9de5-0ba74c7d525a@32g2000prq.googlegroups.com \
    --to=joseph.harrington.2@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.