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: Sat, 19 May 2018 10:50:28 +0100 Message-ID: <20180519095028.GA31853@breton.holly.idiocy.org> References: <20180518193632.GA31241@breton.holly.idiocy.org> 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 1526723355 26304 195.159.176.226 (19 May 2018 09:49:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 May 2018 09:49:15 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: George Plymale II Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 19 11:49:11 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 1fJyU8-0006eZ-72 for ged-emacs-devel@m.gmane.org; Sat, 19 May 2018 11:49:08 +0200 Original-Received: from localhost ([::1]:42403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJyWF-0002UX-4V for ged-emacs-devel@m.gmane.org; Sat, 19 May 2018 05:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJyVW-0002UG-OL for emacs-devel@gnu.org; Sat, 19 May 2018 05:50:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJyVV-0002c0-MQ for emacs-devel@gnu.org; Sat, 19 May 2018 05:50:34 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:51388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJyVV-0002bp-Dm for emacs-devel@gnu.org; Sat, 19 May 2018 05:50:33 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id j4-v6so17918147wme.1 for ; Sat, 19 May 2018 02:50:33 -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=GAb3fAMsYqA6Vgt5fI7IfB3IC5qOMGkmxGf82Ldz3LQ=; b=TWhXKkWFXRi5vPqIJuhjJZEUs/yP6jL1552PfuI+es0F/Up9bZKCsH1s5unxIlgGD7 1Te5eB8zNplnfSRGdblC0kk53uxMWQabYw5JTAAgndQpYboD31xCmoGN+IqcO5mDXL6X EonF6X1BQjpBmvdgQE7TPl7pChOSSfDy9FWozhtrzRZRcC1RacI6wC1LHg3XdYgrqM1O KpiNH6vyeXO/C8hcZw0pbXYfV4TN/K8P3oPGiGXmaAHc2zkngje7seXgVjumHEA1I/nU Z9ehE+W9ANz9q9bVS4YTQ36IeKwSAK6ZugRw8QCS2Dz5Hv1USM39fg1Lp8SzCUglrxNz 87fw== 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=GAb3fAMsYqA6Vgt5fI7IfB3IC5qOMGkmxGf82Ldz3LQ=; b=pracCN/p5Vu4PFkuyempn//2RIoy9eL8jGXgY8sXzoBvbBfnAk2vkWkwUaV5lj+Nsf dkZhCHGyeb1B8t8UmNSopxuN8NVC0RTvfd9/+DB9L3PNchii1adZgQTg5SDChqIDe/SC dDYQ/5LkkmM5gNZc+5uU82OAQQmosHJIKfcweIZvU93k/PVOG5lLfSndpjThhVHaxIf5 s/D768EdsrlBvNf9g2g2cIl8odKfqAhGJXhpbSj8iBD2jrk8pCV1gOzhPrb3AjPFmu1o mpsK0QzCv/lj84ViWHrxN1f7cUrSx19SpqSzo0Z1tVab1YJfZATPryYaF1oNhrVCYtLK O4NQ== X-Gm-Message-State: ALKqPwfGmhdxMejeN0Abd0NNs27A1RFtHmeQ2LbCwCm8KlldMrEhdv5W hzVw8VNtmghGBpa3s/sOybf2e1vR X-Google-Smtp-Source: AB8JxZqtUmWxKM78wIqWHIz21nEfIv96uPf3EwbkUMQhEitA3wMyZ4u6Twu8PW3BsfId+6nXhRU3XQ== X-Received: by 2002:a1c:ef0c:: with SMTP id n12-v6mr7044178wmh.123.1526723431649; Sat, 19 May 2018 02:50:31 -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 a10-v6sm17323673wri.10.2018.05.19.02.50.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 May 2018 02:50:30 -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::22b 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:225429 Archived-At: On Fri, May 18, 2018 at 05:21:38PM -0400, George Plymale II wrote: > > * Application Menu > > > When the last NS frame is deleted the menus aren’t updated, so I think > > they’ll be the menus as defined for the last frame. They should > > probably be cut right back to just the ‘Emacs’ menu, and perhaps > > ‘help’. > > Won't those menus just get updated once a new frame is created? I'm not > exactly sure what the implications of this are. Yes, they will, but it’s still messy. You end up with menus that do absolutely nothing. > > Is there some other way of creating a new GUI frame? I assume there > > must be since emacsclient can do it. > > I suppose you must be right that there's another way to do it, but I > don't know what that would be. I could try and dig around in the code if > you'd like. I was hoping someone who knew would read this and give me a pointer in the right direction. If not I’ll get round to it at some point. :) > > * ALSO! > > > Closing the terminal frame when there are no GUI frames left results > > in a crash. I guess Emacs doesn’t think it needs to clean up the NS > > stuff or something? I don’t really know what’s going on there. > > Strange, I don't see a "crash" in the Emacs Mac Port. I don't notice any > abnormal exit status, error, or system popup, if that's what you mean. I > don't know what could be going on there either, but I'm tending to think > that we need to follow the Emacs Mac Port's example in at least some of > these instances. One thing to bear in mind is that the Mac port is a completely different code base than the NS port. The Mac port was originally written for the Carbon API, and the NS port for NeXTSTEP (now Cocoa and GNUstep). They do share some things (most notably macfont.m), but it’s not a given that something broken in one will be broken in the other, or that the code can be copied directly between them. -- Alan Third