From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Should this package be included into the NS port? Date: Tue, 29 May 2018 22:42:23 +0100 Message-ID: <20180529214223.GA20731@breton.holly.idiocy.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527630083 12385 195.159.176.226 (29 May 2018 21:41:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 May 2018 21:41:23 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: nick@tenpoint.co.nz, emacs-devel@gnu.org, p.stephani2@gmail.com, monnier@iro.umontreal.ca, van@scratch.space, eliz@gnu.org To: George Plymale II Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 29 23:41:18 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNmMo-00038Q-NB for ged-emacs-devel@m.gmane.org; Tue, 29 May 2018 23:41:18 +0200 Original-Received: from localhost ([::1]:35177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNmOv-0003TG-NN for ged-emacs-devel@m.gmane.org; Tue, 29 May 2018 17:43:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNmNw-0003SQ-W6 for emacs-devel@gnu.org; Tue, 29 May 2018 17:42:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNmNw-0000TW-6J for emacs-devel@gnu.org; Tue, 29 May 2018 17:42:29 -0400 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:54758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNmNv-0000SK-Tz; Tue, 29 May 2018 17:42:28 -0400 Original-Received: by mail-wm0-x230.google.com with SMTP id f6-v6so44057630wmc.4; Tue, 29 May 2018 14:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=fSCtDBl49RkRktn3W8ymmhVfpm6WlkjK/rrk6JtiOp8=; b=dR+25w59OKerZv6gTHpHQqbkOb4H19fWkKsEIN8diwB+qkoVPRq+hGo6W4d6YtYE6J AxF/biAzeZBIXRNUCBB7Rus+XKu+YVW3QIlRaQ7hY/VOLVSDPgyRaof2zNAjWFvL6Fin JC3s6toBK14R5gLrWfkhjcQ16kvev0g4+vgRvVXeqCqCfvgT/MMkoZZ/Sn+t8gi5dt7C 4VyfWa4IdQyYBw6Xs2fQlEfdlKKxElnyHmMxGmxsb44gj5CegL1tofpOezP0MlCb/3X7 zQNEszSD1OzDsnOF1QCQMIWqXxas9vzhxm6gaoAD5fpFUqRtO60/g+cWvjtvzlJw3shc aEGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=fSCtDBl49RkRktn3W8ymmhVfpm6WlkjK/rrk6JtiOp8=; b=Zx8ZhkORNwTnO8YEA5pyI6Xqzu/YML+MJERiVKHYqF/xIwXw8C/X1PRow2CYKVThEA Fnklwe1NaGUa1JKRuSEiYWfdlh8D0rpPsA8rZ/S7SlBShlwd+R5to0hk010tQzp4/K7K pBEsZUxz7kK5yF5v7PrGdZ5KCpSOSEB9x4Tpwtcg+gxCyJrXYsPm1rv89zJ9QjqhCoCI kN2Vfrv+APD7DZDCBwMhPGddTZlxJkWcMSDXYrrg0Fa59w5YxfhESGendj+2nBUf4Yli mdiB/ulGuvb0QrzPny1qllgLIeyhNhW0JHkM3nOipgFw6Dj4kjhmMbNCy8GMnlSHXX+2 CzGw== X-Gm-Message-State: ALKqPwd39TKrkCweYq9YelxOZlFAarsgU9tYjIpus939RILYMtxtmjaj Tw1/JWJzIzK7ELQuQZkxtHs= X-Google-Smtp-Source: ADUXVKKjmTGhGgcbPZpsykfjwHA5aMgpqBGtji0bwjlNp80con3NCAcexsPWSqRnTHcHaGpLXEzFTQ== X-Received: by 2002:a1c:6803:: with SMTP id d3-v6mr390674wmc.70.1527630146279; Tue, 29 May 2018 14:42:26 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-acd0-c556-d8b1-5ceb.holly.idiocy.org. [2001:8b0:3f8:8129:acd0:c556:d8b1:5ceb]) by smtp.gmail.com with ESMTPSA id q7-v6sm27477957wrf.0.2018.05.29.14.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 14:42:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225809 Archived-At: On Tue, May 29, 2018 at 05:29:09PM -0400, George Plymale II wrote: > Hi again folks, > > The discourse so far regarding this issue has been very interesting. It > seems there's been a lot of back-and-forth about how to solve this issue > in the core. I won't reiterate or re-hash all of it here, but suffice it > to say that it seems this brings some significant difficulties due to > the way Emacs and the NS machinery cooperate. I'm still wondering if > perhaps we shouldn't just put the band-aid of osx-pseudo-daemon on the > problem for now. > > I don't want anyone to feel over-burdened with the task of taking on > this issue or to feel out of their depth, so I'm just putting this on > the table once more. I talked to Ryan C. Thompson on Github the other > day; he said he's already signed the FSF paperwork so his package should > be acceptable into the core with little to no issues on that front. > > I think this package will be a significantly easier solution for the > time being (if incomplete), and it will give us a little more time to > mull over how to solve the real problem for good. FWIW I think we can solve this by defining: (defun ns-make-frame () (interactive) (make-frame-on-display (car (x-display-list)))) in ns-win.el, binding it to ns-new-frame, and then making that event available everywhere. I’m not sure how to do the last bit. At the moment it’s defined in nsterm.h; presumably it needs to be defined somewhere else. As described elsewhere the menus will be pretty much useless, but the dock icon menu should be able to create a new frame. It might be better to use the package until we can sort out the menu issue. Thoughts? -- Alan Third