One more thing. This reminds me of Bug#30350, so if this new bug still occurs under OS X 10.10 please try the attached patch. If this works around the OS X 10.10 bug I can polish it up and install it properly into Emacs. Thanks.