From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: Emacs fails to create frame at boot of OSX Date: Sat, 22 Aug 2015 15:03:19 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440248645 22185 80.91.229.3 (22 Aug 2015 13:04:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2015 13:04:05 +0000 (UTC) Cc: help-gnu-emacs To: Mark Simpson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 15:04:04 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZT8Sp-0000bi-CZ for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 15:04:03 +0200 Original-Received: from localhost ([::1]:46528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT8So-0003xq-MK for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 09:04:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT8Sd-0003xG-Om for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 09:03:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZT8Sc-0004IL-EI for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 09:03:51 -0400 Original-Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:38808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT8Sc-0004I6-85 for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 09:03:50 -0400 Original-Received: by igfj19 with SMTP id j19so30659728igf.1 for ; Sat, 22 Aug 2015 06:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=PnpVpU1G/8WsSVt9ty9eUjBXf/vAmR/2WH6kIEv5fUg=; b=j3FItCNnHC3FRnkV52tH82BsxLk+BjOoUcTxBVR2V5lwh6g1FRJgW+V7JXoCvFZPT5 JmWtKUj/siP09YieD23sMFe6j4y6zI8sTfvjRwqFZOkBpi7A8YIQPbOSoEMDK9MbGO5K 5/H+bfeQ556INeBTEQbkIQ/8vtTc3nCQqQLAT/oOlLrx9H5Q8PABxov2dm/F7DtlW+iL FTYDTfIyGAiw8LGHECEB3rBfspyXF1TJObw+uGd0LbLg7d9fTDEeiwVy/ZsfusxD1t0+ ZtyPeI0RU7pRwDLLdTe/2SmB+/S+WX64DmPHrUZHvjL8RcpMtKi93Cd+ZZ/Ux7+rTeHB 3/vA== X-Received: by 10.50.111.230 with SMTP id il6mr7073873igb.56.1440248629500; Sat, 22 Aug 2015 06:03:49 -0700 (PDT) Original-Received: by 10.107.152.196 with HTTP; Sat, 22 Aug 2015 06:03:19 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106766 Archived-At: This problem still occurs, in fact just now after booting with the freshly installed OSX 10.10.5 and GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Anybody? On 3 November 2014 at 10:44, Guido Van Hoecke wrote: > Hi Marc > > On 26 October 2014 12:56, Mark Simpson wrote: > >> >>>>> On Sun, 26 Oct 2014 11:25:23 +0100, Guido Van Hoecke < >> guivho@gmail.com> said: >> >> Guido> When I boot my iMAC all apps that were running at the >> Guido> previous shutdown are restarted by OSX. So Emacs is also >> Guido> started, but fails to create its frame. It just hangs without >> Guido> frame. I have to kill it and restart it. That always >> Guido> succeeds. >> >> Guido - >> >> You are not the only person with this problem - I have it too. Also it >> sometimes happens after simply closing Emacs and trying to restart it, >> > =E2=80=8B > Fortunately this is utterly rare here, but then, I seldom close Emacs :) > =E2=80=8B > > >> without rebooting the machine. > > > =E2=80=8BJust describing my current workaround, maybe it can help people = suffering > from this problem. > > Moved /usr/bin/emacs to /usr/bin/emacs_OSX and created a /usr/bin/emacs > script with following one-liner: > open -a /Applications/Emacs.app > > Used Automator to create a 'Utilities, Runs Shell Script' Application to > run following script: > sleep 60 # wait long enough to ensure the frozen emacs is started > pids=3D`/bin/ps -axo pid,command | grep [E]macs | awk '{ print $1 }' = | > tr '\n' ' '` > if [ "no$pids" !=3D "no" ]; then > kill -KILL $pids > fi > /usr/bin/emacs > Saved this as killAndRestartTheGodOfEditors.app and added it to my Login > Items. > (Note: having `open -a /Applications/Emacs.app` directly in the script > rather than via my `/usr/bin/emacs` to launch Emacs fails for some reason > that I have not yet investigated!) > > So now the boot-time emacs (which lately always hangs) is killed off and = a > new emacs is started. It's not ideal, but at least I've got a working ema= cs > when my iMac finishes booting. And I don't mind the 1 minute wait to ensu= re > it doesn't try to kill a not yet running emacs: I usually power on the Ma= c > and then only I brew some coffee, go get the newspaper etc etc while it's > booting anyhow. > > =E2=80=8BHope this helps, > > Guido=E2=80=8B > > > I have been too lazy to investigate or even post here - so thank you for >> doing so. >> >> Ciao >> Mark >> >> >> >