From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#22993: Potential fix/workaround for 22993 Date: Sun, 10 Jul 2016 10:53:32 +0100 Message-ID: <20160710095332.GA35411@breton.holly.idiocy.org> References: <57629b7f841b1a0000aa4164@polymail.io> <20160703091937.GA11931@breton.holly.idiocy.org> <20160707185531.GA12590@breton.holly.idiocy.org> <20160707195759.GB12590@breton.holly.idiocy.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1468144464 28338 80.91.229.3 (10 Jul 2016 09:54:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 09:54:24 +0000 (UTC) Cc: 22993@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 11:54:14 2016 Return-path: Envelope-to: geb-bug-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 1bMBRG-0000XA-Ab for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 11:54:14 +0200 Original-Received: from localhost ([::1]:53959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBRF-000577-ID for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 05:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBR9-000572-9b for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 05:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMBR4-0001OR-A0 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 05:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMBR4-0001ON-5W for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 05:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMBR4-0003c0-0k for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 09:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 22993-submit@debbugs.gnu.org id=B22993.146814442313858 (code B ref 22993); Sun, 10 Jul 2016 09:54:01 +0000 Original-Received: (at 22993) by debbugs.gnu.org; 10 Jul 2016 09:53:43 +0000 Original-Received: from localhost ([127.0.0.1]:44595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMBQk-0003bR-TU for submit@debbugs.gnu.org; Sun, 10 Jul 2016 05:53:43 -0400 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:35368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMBQi-0003bE-Ia for 22993@debbugs.gnu.org; Sun, 10 Jul 2016 05:53:40 -0400 Original-Received: by mail-wm0-f43.google.com with SMTP id f65so33274076wmi.0 for <22993@debbugs.gnu.org>; Sun, 10 Jul 2016 02:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=J5QA4znWlbe6wlVRi93w2IEGjRB0Pt4CH+qE/xjLGSk=; b=EkW8G0BefwW8+h2EXpoT8g23JI340xNahKbZqax37CnWfBCNiPz8BqzOBrWdV2J8v5 7fieIY+8sktiUwNcF16jJlxw5Cz7d9nOxLeVKPfsUcC6ioAZnsvbQCm65B+QjXA4kIcL P85xrPbdWiTkNRyEJVRLab9dcZO/7xDmSD47FrE9YZgn8Lmc2WompZt12XkporyvBNY/ QW2gYYHDyqHc3dR4JeLHNMSncEFsYs5OARKNFuT9hiavWm9vKLOKA++o203S73dnAt7+ j83h15BiyuxJWScpdGyuXeNYFaGOMwUkXmG1flwwHsA4TTlLivrbW1VB2GelV7eHmseT beqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=J5QA4znWlbe6wlVRi93w2IEGjRB0Pt4CH+qE/xjLGSk=; b=FyqrBnIwwRIWCEceld87mccZFN0XxGS0yTVUJ9IbNYpEpnZXnTSWaZ3OSwOvFppEks ofN1GoJ3xZtepnZch1VhiBGNBZdtvnYvxOz0pvhSOk4wEE2So4bjCjN1d/P/A59s1UXE 6/7svjuACBNAEHnzuIUgZ7RMxG4reZVCBFlHwLCgk7TyN3S8qVMP7TOoQV54iapIyZWG 30ftVaKE3PdIDASvC4nCAeenc0FXhnOV5mRkYhElJAT+pWfdW3It9eVZnmeOcVVrFiRF bfAtKajECswYomvUV/yTECt0jaFEPoqrzW24xmnj5IA/FRGujFzmFGAg1vhmv4U47AN2 2EEg== X-Gm-Message-State: ALyK8tJ3zgi7z0NR880hJs1XL5kV3xDly0RIhL7qydCARzYeBJqxK/paPuroiCzWZmJg6g== X-Received: by 10.28.15.213 with SMTP id 204mr6257511wmp.74.1468144414903; Sun, 10 Jul 2016 02:53:34 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-5cc4-ba14-a0d0-bdac.holly.idiocy.org. [2001:8b0:3f8:8129:5cc4:ba14:a0d0:bdac]) by smtp.gmail.com with ESMTPSA id p126sm12206779wmp.13.2016.07.10.02.53.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2016 02:53:34 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120738 Archived-At: On Fri, Jul 08, 2016 at 05:29:26AM +0000, Aaron Jensen wrote: > On Thu, Jul 7, 2016 at 12:58 PM Alan Third wrote: > > > Unfortunately I can't quite work out what they're doing. That > > QSettings thing is specific to QT, as far as I can tell. There must be > > a Cocoa equivalent, but I don't know what it is. > > > > I believe it’s this: > > CFDictionarySetValue(infoDict, CFSTR(“NSAppSleepDisabled"), > kCFBooleanTrue); > > via > https://github.com/salamanderrake/KDevelop/blob/0e9822520dde913e177d00ed964e07e73fb7f936/app/main.cpp#L194 > > > I've reverted the change, but I'm not keen to make the above changes because they're not trivial, I don't understand them, and I would basically be copying and pasting code. I suspect we could have license issues with that. If anyone knows different feel free to chime in. For future reference, here are the known work-arounds for this problem: 1. At the command prompt: defaults write org.gnu.Emacs NSAppSleepDisabled -bool YES 2. Right-click on the Emacs icon and select 'get info' and tick the 'Disable App Nap' checkbox. (Although I don't get that tick box...) 3. Run in daemon mode: Emacs as a daemon has no GUI so app nap is disabled automatically. -- Alan Third