mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 13:09:47 -05:00
emacs: fix default-directory on Cocoa and 10.9
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
1 parent
6dc9f4d01d
commit
7f94d650f2
1 file changed
+26
@@ -34,6 +34,12 @@ class Emacs < Formula
|
||||
cause "Duplicate symbol errors while linking."
|
||||
end
|
||||
|
||||
def patches
|
||||
{
|
||||
:p0 => DATA, # fix default-directory on Cocoa and Mavericks.
|
||||
}
|
||||
end
|
||||
|
||||
# Follow MacPorts and don't install ctags from Emacs. This allows Vim
|
||||
# and Emacs and ctags to play together without violence.
|
||||
def do_not_install_ctags
|
||||
@@ -126,3 +132,23 @@ class Emacs < Formula
|
||||
return s
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
--- src/emacs.c.orig 2013-02-06 13:33:36.000000000 +0900
|
||||
+++ src/emacs.c 2013-11-02 22:38:45.000000000 +0900
|
||||
@@ -1158,10 +1158,13 @@
|
||||
if (!noninteractive)
|
||||
{
|
||||
#ifdef NS_IMPL_COCOA
|
||||
+ /* 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"));
|
||||
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;
|
||||
Reference in new issue
Block a user