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, 22 May 2018 20:15:58 +0100 Message-ID: <20180522191558.GB35196@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 1527016507 23050 195.159.176.226 (22 May 2018 19:15:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 May 2018 19:15:07 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: Stefan Monnier , emacs-devel@gnu.org To: George Plymale II Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 21:15:02 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 1fLCkP-0005iy-5C for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 21:15:01 +0200 Original-Received: from localhost ([::1]:57474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLCmR-0000J0-2u for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 15:17:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLClP-0008GU-Dd for emacs-devel@gnu.org; Tue, 22 May 2018 15:16:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLClO-00013V-H0 for emacs-devel@gnu.org; Tue, 22 May 2018 15:16:03 -0400 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:35309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLClO-00012w-9D for emacs-devel@gnu.org; Tue, 22 May 2018 15:16:02 -0400 Original-Received: by mail-wm0-x22f.google.com with SMTP id o78-v6so2796800wmg.0 for ; Tue, 22 May 2018 12:16:02 -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=mGlny014XAf9wkD8ce6GstcEDvPLsKWTgzeMbC7Xs9w=; b=KGGKNRg2LG7HWWYPWlnw1EcUw/aPoqdHH4kr+rggSo7Yf2LQykxIuLe8P3kSzNyRCa 8ctU7R3At0Qu9D8IrbsIx+ZXH+VXMGAKcdDjuOBo0PyxK9NI3ATB9PsSzkmpUa71fmYr P+90aSMTTXMo4962P3UjwPo4aRmiuCvi9dQwM1txlnOsy01gGaWMh9/X+O5zhH7lFHrM +43KGHn+oNuWxlEafrnqlqJbYte8MoWeQLkXeJUi/nOudRxxMvKvYr4HLsRaxPBHskpj vmW4c4Y63djuIKyFDc3CLH8/n1Hs5Dslcdt+WTjFQmIGaE5+u5hi0Ck6VSlaYjtXcsHy n8YQ== 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=mGlny014XAf9wkD8ce6GstcEDvPLsKWTgzeMbC7Xs9w=; b=XpBttL7GhCbw3T8cZtf9RtHplaReXIiGeOXi1MyAyKFVHhuIQPykIH1vHNcF+Qdw5B hrFRxUmoBhyG8n4Y3grhKppYqrBjeMOz+vwqL1XOts8ha/xDUR9T3J6bZEhOYh8Y2aRe TbEZDf4k1Y3xqYk1ZSxxdIq/a7uLPa1jGzbb2AB5T94pyrB56VkT+GcbX39DS9BK+rak P0TJUo0uzmN6kfENquN+rCyq1rPZuMU7L5DLAmQ1a5TteU/zw4oNVbcSCitEiSIfSx+0 qe/vsY43DvmxHgDBwjGiUC4fWiOS/rZPhNZDi+QgZlEuHKup5h7jBmkaP/yyC5vwLFEc uhwg== X-Gm-Message-State: ALKqPwcEhbswGQ1//UTsGF+2hoJtV6VjFrSMzPBtwjSPBOcL7VvbYvGB jhgFMzW3DUobx6Hz2WigYg4mh+Kx X-Google-Smtp-Source: AB8JxZq4vbnkeux/SOZ3/qmm8ZL1r5Ucg/J9A0t7utwcWmIVvUi4LSHl2b7nF511ObeUdHjw/17xAw== X-Received: by 2002:a1c:5d4f:: with SMTP id r76-v6mr2090705wmb.55.1527016561102; Tue, 22 May 2018 12:16:01 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-3195-ed66-b02d-6c9f.holly.idiocy.org. [2001:8b0:3f8:8129:3195:ed66:b02d:6c9f]) by smtp.gmail.com with ESMTPSA id w40-v6sm29980778wrc.69.2018.05.22.12.16.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 12:16:00 -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::22f 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:225570 Archived-At: On Mon, May 21, 2018 at 09:42:32PM -0400, George Plymale II wrote: > Stefan Monnier writes: > > > AFAIK server.el uses make-frame-on-display. Don't know if that has been > > made to do something useful in the NS port. > > Thanks for the info. > > Alan, does that answer your question? I'm not sure if we are using > make-frame-on-display in the NS port. Sorry, yes. I’ve only got limited time for Emacs at the moment, so I’m being a bit slow in responding. This does help, though. It seems that if you end up in the situation where you’ve only got the terminal left you can use (make-frame-on-display (car (x-display-list))) to create a new GUI frame, but the problem now is that the Emacs event the dock menu fires (ns-new-frame) is only available in NS frames (or something, I’m unclear), so if the current frame is a terminal frame, and you click on ‘new frame’ in the dock menu, the terminal displays <268435468> is undefined I assume what we need to do is define the ns-new-frame event somewhere other than nsterm.h, which is where it is now. This all sounds wrong to me, tbh. But I don’t know of any other way we can run lisp from within the NSApp run loop than by firing off events or setting a flag and catching it later. -- Alan Third