Re: Symlinking Emacs.app to the $PATH

2008-11-24 Thread Tim Visher
I had no idea such __passion__ would erupt over this simple little query. :) Luckily, I hardly ever pass anything but `-fs` to Emacs so I don't have to worry about most of what you guys are all arguing about. However, I don't think we've come anywhere close to a resolution. It will be interesting

Re: Symlinking Emacs.app to the $PATH

2008-11-18 Thread Ryan Schmidt
On Nov 15, 2008, at 17:52, Jordan Hubbard wrote: On Nov 15, 2008, at 14:36, Ryan Schmidt <[EMAIL PROTECTED]> wrote: MacPorts still supports Tiger so it's useful to provide solutions that work there. Well, as I said, I have not run it in many years so it's a bit harder for me to even com

Re: Symlinking Emacs.app to the $PATH

2008-11-18 Thread Vincent Lefevre
On 2008-11-15 10:46:09 -0800, Jordan K. Hubbard wrote: > No, DO use $*, just remember to quote it like you would any other > variable expansion involving filenames. I don't understand this answer. If $* is used, then there is no way to make the difference between cmd a b and cmd "a b" be

Re: Symlinking Emacs.app to the $PATH

2008-11-15 Thread Jordan Hubbard
Sent from my iPhone On Nov 15, 2008, at 14:36, Ryan Schmidt <[EMAIL PROTECTED]> wrote: MacPorts still supports Tiger so it's useful to provide solutions that work there. Well, as I said, I have not run it in many years so it's a bit harder for me to even comment on what works (or not) in

Re: Symlinking Emacs.app to the $PATH

2008-11-15 Thread Jordan Hubbard
I believe open just passes filename args, probably because it canonicalizes them before passing to LaunchServiced. So it passes args, just not *any* args (and if you think about passing context across address spaces, it even makes sense). Sent from my iPhone On Nov 15, 2008, at 15:03, Rain

Re: Symlinking Emacs.app to the $PATH

2008-11-15 Thread Rainer Müller
Jordan K. Hubbard wrote: > On Nov 14, 2008, at 6:30 PM, Vincent Lefevre wrote: > >> Here (10.4.11) "open" doesn't take arguments: >> >> prunille:~> open -a /Applications/MacPorts/Emacs.app -nw foo >> 2008-11-15 03:22:26.754 open[4228] No such file: /Users/vinc17/-nw > > Well, I have not run 10.4

Re: Symlinking Emacs.app to the $PATH

2008-11-15 Thread Ryan Schmidt
On Nov 15, 2008, at 12:46, Jordan K. Hubbard wrote: On Nov 14, 2008, at 6:30 PM, Vincent Lefevre wrote: Here (10.4.11) "open" doesn't take arguments: prunille:~> open -a /Applications/MacPorts/Emacs.app -nw foo 2008-11-15 03:22:26.754 open[4228] No such file: /Users/vinc17/-nw Well, I have

Re: Symlinking Emacs.app to the $PATH

2008-11-15 Thread Jordan K. Hubbard
On Nov 14, 2008, at 6:30 PM, Vincent Lefevre wrote: Here (10.4.11) "open" doesn't take arguments: prunille:~> open -a /Applications/MacPorts/Emacs.app -nw foo 2008-11-15 03:22:26.754 open[4228] No such file: /Users/vinc17/-nw Well, I have not run 10.4 for a number of years now, but it certai

Re: Symlinking Emacs.app to the $PATH

2008-11-14 Thread Vincent Lefevre
On 2008-11-14 10:12:22 -0800, Jordan Hubbard wrote: > JFYI, but to correct a misapprehension here, open does take arguments > (for the launched process) so your original idea would have also worked Here (10.4.11) "open" doesn't take arguments: prunille:~> open -a /Applications/MacPorts/Emacs.a

Re: Symlinking Emacs.app to the $PATH

2008-11-14 Thread Jordan Hubbard
JFYI, but to correct a misapprehension here, open does take arguments (for the launched process) so your original idea would have also worked if you had used a shell function instead of an alias and passed the args through with $* HTH Sent from my iPhone On Nov 14, 2008, at 10:01, Tim Vis

Re: Symlinking Emacs.app to the $PATH

2008-11-14 Thread Tim Visher
Thanks for the tip, vincent. I implemented what you suggested and it appears to work. On Fri, Nov 14, 2008 at 9:14 AM, Vincent Lefevre <[EMAIL PROTECTED]> wrote: > On 2008-11-14 00:29:03 -0600, Ryan Schmidt wrote: >> alias emacs='open -a "/Applications/MacPorts/Emacs.app"' > > This won't work wit

Re: Symlinking Emacs.app to the $PATH

2008-11-14 Thread Vincent Lefevre
On 2008-11-14 00:29:03 -0600, Ryan Schmidt wrote: > alias emacs='open -a "/Applications/MacPorts/Emacs.app"' This won't work with options. It's better to write a wrapper script. I use the following one: #!/bin/sh app="Emacs.app/Contents/MacOS/Emacs" #emacs="/Applications/$app" test -x "$emacs" |

Re: Symlinking Emacs.app to the $PATH

2008-11-14 Thread Tim Visher
That works! It's funny but I'm kinda new to the whole `alias` thing, so I hadn't even thought of doing that. I really need to remember that's there. I guess we'll assume that the issue was somewhere in the fact that I was symlinking it. Thanks again, Ryan! On Fri, Nov 14, 2008 at 1:29 AM, Ryan

Re: Symlinking Emacs.app to the $PATH

2008-11-13 Thread Ryan Schmidt
On Nov 13, 2008, at 18:22, Tim Visher wrote: I'm attempting to make Emacs.app my default installation. I read somewhere that one way to do this is to symlink /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs onto your path. What I've done so far is to `ln -s /Applications/MacPorts/Emacs.ap

Symlinking Emacs.app to the $PATH

2008-11-13 Thread Tim Visher
Hello Everyone, I'm attempting to make Emacs.app my default installation. I read somewhere that one way to do this is to symlink /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs onto your path. What I've done so far is to `ln -s /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs ~/.bin/e