From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: George Plymale II Newsgroups: gmane.emacs.devel Subject: Re: Should this package be included into the NS port? Date: Tue, 22 May 2018 16:09:28 -0400 Message-ID: References: <20180522191558.GB35196@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527019657 25365 195.159.176.226 (22 May 2018 20:07:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 May 2018 20:07:37 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 22:07:32 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 1fLDZD-0006UF-Ts for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 22:07:32 +0200 Original-Received: from localhost ([::1]:57696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLDbL-0000uw-5S for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 16:09:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLDbC-0000tw-Og for emacs-devel@gnu.org; Tue, 22 May 2018 16:09:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLDb9-00021C-Jb for emacs-devel@gnu.org; Tue, 22 May 2018 16:09:34 -0400 Original-Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:37166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLDb9-00020Y-EY for emacs-devel@gnu.org; Tue, 22 May 2018 16:09:31 -0400 Original-Received: by mail-it0-x22e.google.com with SMTP id 70-v6so1591605ity.2 for ; Tue, 22 May 2018 13:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orbitalimpact.com; s=google; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-transfer-encoding; bh=mPLmha82hubf+BVSG33gy5soQFzDUDIjk1GdfEvFp5U=; b=opU2n7KvDy35naKyyRCxYyHkgRr64Q4EUpp3oxegYI/ILsJQKuhPrfLkHswVSU9g4W +4LWtBD+Dq/Po3ADYuZEaH+dSqpSOLj/WI5wwGOBMNj2kFk7ZPfhktTObfzh1IP2JfWo K097+BDmeNiirJWciAUsh+FjckJHMMOl9PxuM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-transfer-encoding; bh=mPLmha82hubf+BVSG33gy5soQFzDUDIjk1GdfEvFp5U=; b=aWDPo1y82Jggb/IFGgJej4l4T+Ut6yNFAYj6D2pANwECJDH3fZf3NGf92bBTRjPDJQ OYoOdBZRt6qh8y+j0BhS9uh/WMvgc79dxPLxsFtaEmw0VnjFnMVGFnxQfXV+n57w9VtG ay7GljA2tIRlaWv+jX1A012etJ3vtZYzbxLo7dHEo5/UgXOOKd+Vl7U7VcV2MGGld4IE 4RUBA3nPOScTYfjoOI0L0hyrWAao9GlcyWb8zIq5uBWO0RugZzKotglLGaG5qfX/a8/k +gj1j/LlVcLKIpfLCdtn67LGXDksHlAmPG/RrUAajIF5VJrA0yPand5IUPoOvHwOkE7m CQsw== X-Gm-Message-State: ALKqPwcMoOwYobmdnqt4LtGNBjxEJkLgRyG0l/+q7U/rcO7OXyeiIxFX QJhU5Pjr2tthQP05TDS3QqUUn960 X-Google-Smtp-Source: AB8JxZqU5+veX9e0Rt94dzj4KniM12Iq9Yz2qxil2A7WHtwrrWpZx6X/0ul5O2y8PnQAu9h48u0R9Q== X-Received: by 2002:a24:fe44:: with SMTP id w65-v6mr2700346ith.87.1527019770618; Tue, 22 May 2018 13:09:30 -0700 (PDT) Original-Received: from lehi.dev.orbitalimpact.com (ip-6-39-52-196.chicago.us.northamericancoax.com. [196.52.39.6]) by smtp.gmail.com with ESMTPSA id s74-v6sm376354ita.43.2018.05.22.13.09.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 13:09:29 -0700 (PDT) In-Reply-To: <20180522191558.GB35196@breton.holly.idiocy.org> (message from Alan Third on Tue, 22 May 2018 20:15:58 +0100) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22e 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:225578 Archived-At: Alan Third writes: > Sorry, yes. I=E2=80=99ve only got limited time for Emacs at the moment, s= o I=E2=80=99m > being a bit slow in responding. No problem, I was just unsure if you saw Stefan's message. > This does help, though. > > It seems that if you end up in the situation where you=E2=80=99ve only go= t 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=E2=80=99m unclear), so if the current frame is a terminal fr= ame, > and you click on =E2=80=98new frame=E2=80=99 in the dock menu, the termin= al 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=E2=80=99t know of any other w= ay we > can run lisp from within the NSApp run loop than by firing off events > or setting a flag and catching it later. Hmm, very interesting. Yes, all of what you're saying makes sense although it does perhaps seem a bit "wrong" as you say. Nonetheless, a "wrong" solution may be better than no solution. Just my 2=C2=A2 - George Plymale II