Nicholas Riley’s Weblog
Thoughts from a computer science graduate student,
medical student and Cocoa programmer (this week).

Skip over navigation
March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr

made with
Click here to visit the Radio UserLand website.

Click on the coffee mug to add Nicholas Riley's Instant Outline to your Radio UserLand buddy list.

 

>
Tuesday, March 5, 2002
 
A modified version of my Mac OS X Emacs-launching script which doesn't assume a certain amount of time it takes Emacs to start up; this one waits and tries again every second.

if [[ ! -z $TERM_PROGRAM ]] {
  e() {
    ( emacsclient -n $@ >&/dev/null && 
      osascript -e 'tell application "Emacs" to activate' ) || 
    ( open -a Emacs && 
      until { emacsclient -n $@ >&/dev/null } do sleep 1; done )
  }
}

I wish grep handled Mac line-endings, OTOH, I'm very happy BBEdit's multi-file search does. 6:43:24 PM | reply []

Thanks for the notes, folks, I slept a lot last night and am much better able to work (excepting the bruises :-) today. 4:17:28 PM | reply []


Looking for older (or newer) material? Click another date on the calendar at the top of this page.