Subject: bug#6077: 23.1.96; start-process error

From: Leo <[email-masked]>
Date: Sun, 02 May 2010 10:51:32 +0100

When invoking browse-url in a buffer where the default directory no
longer exists which happens quite often if you have long-running emacs
session, the following error is generated and browse-url aborts the
action.

Debugger entered--Lisp error: (file-error "Setting current directory" "no such file or directory" "/Users/leo/Desktop/untitled folder/")
  start-process("open http://paste.lisp.org/display/98663" nil "open" "http://paste.lisp.org/display/98663")
  browse-url-default-macosx-browser("http://paste.lisp.org/display/98663" nil)
  apply(browse-url-default-macosx-browser "http://paste.lisp.org/display/98663" nil)
  browse-url("http://paste.lisp.org/display/98663")
  rcirc-browse-url-at-point(19540)
  rcirc-browse-url-at-mouse((mouse-2 (#<window 9505 on [email-masked]> 19540 (375 . 232) 1105613306 nil 19540 (46 . 15) nil (7 . 7) (8 . 15))))
  call-interactively(rcirc-browse-url-at-mouse nil nil)

I wonder if it makes sense to make start-process more robust in this
case. Thanks.

Leo