[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OSX breakage for Emacs.app shortly after 10/17
From: |
Randal L. Schwartz |
Subject: |
Re: OSX breakage for Emacs.app shortly after 10/17 |
Date: |
Tue, 29 Oct 2013 15:39:17 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) |
>>>>> "Randal" == Randal L Schwartz <address@hidden> writes:
Randal> The 10/17 build on OSX works just fine for me.
Randal> Shortly after that, (and still in the current head), evaluating
Randal> "open -a emacs ." (to open the current directory in a native window in a
Randal> dired) results in:
Randal> command-line-1: Unknown option `-psn_0_1728934'
Randal> and the dired window fails to open. I'm not sure if the number changes
Randal> depending on the directory.
Randal> Anyone remember making changes that might affect command-line-1 like
Randal> that?
Randal> I tried some logs near lisp/startup.el but nothing stood out.
Aha! There *is* a recent change in src/emacs.c applying to the
NS_IMPL_COCOA port. Perhaps this is the culprit:
if (!noninteractive)
{
#ifdef NS_IMPL_COCOA
- if (skip_args < argc)
+ /* Started from GUI? */
+ /* FIXME: Do the right thing if getenv returns NULL, or if
+ chdir fails. */
+ if (! inhibit_window_system && ! isatty (0))
+ chdir (getenv ("HOME"));
+ else if (skip_args < argc)
{
- /* FIXME: Do the right thing if getenv returns NULL, or if
- chdir fails. */
if (!strncmp (argv[skip_args], "-psn", 4))
{
skip_args += 1;
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<address@hidden> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix consulting, Technical writing, Comedy, etc. etc.
Still trying to think of something clever for the fourth line of this .sig