Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

fix default-directory on Cocoa and Mavericks #23897

Closed
wants to merge 2 commits into from

Conversation

znz
Copy link
Contributor

@znz znz commented Nov 2, 2013

On Mavericks, default-directory is / when open Emacs.app.
It should be home directory.

Patches from emacs trunk revision 114730 and revision 114882.

@@ -34,6 +34,12 @@ class Emacs < Formula
cause "Duplicate symbol errors while linking."
end

def patches
{
:p0 => 'https://gist.github.com/znz/7279123/raw/edef39d879fe453fab43b76add0a1ca6ad355eb3/emacs.c.diff',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance of using the upstream patch directly from the Subversion?

@znz
Copy link
Contributor Author

znz commented Nov 3, 2013

The upsteam patches include src/ChangeLog.
I don't know how to exclude ChangeLog.

github mirror urls of the patches:
https://github.com/mirrors/emacs/commit/67d96b8541251ceaf3f5467c7dfff7b4b02ef971.patch
https://github.com/mirrors/emacs/commit/4b6ba5c0e661f7cfe5c3c17571b6f4ecb32abf85.patch

@adamv
Copy link
Contributor

adamv commented Nov 5, 2013

This patch is small enough to include as a DATA block.

@znz
Copy link
Contributor Author

znz commented Nov 6, 2013

Thank you for your advice.
I embedded the patch into a DATA block.

@mistydemeo
Copy link
Member

Thank you! Squashed and pulled.

@mistydemeo mistydemeo closed this Nov 6, 2013
@znz znz deleted the default-directory-on-mavericks branch November 9, 2013 12:17
@znz znz restored the default-directory-on-mavericks branch November 9, 2013 12:17
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants