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: Should this package be included into the NS port? Date: Tue, 15 May 2018 01:19:50 -0400 Message-ID: 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 1526361520 8429 195.159.176.226 (15 May 2018 05:18:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 May 2018 05:18:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 15 07:18:36 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 1fISM7-00023H-LM for ged-emacs-devel@m.gmane.org; Tue, 15 May 2018 07:18:35 +0200 Original-Received: from localhost ([::1]:42302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fISOC-0004ef-Rg for ged-emacs-devel@m.gmane.org; Tue, 15 May 2018 01:20:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fISNY-0004eN-3K for emacs-devel@gnu.org; Tue, 15 May 2018 01:20:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fISNU-0000p4-4L for emacs-devel@gnu.org; Tue, 15 May 2018 01:20:04 -0400 Original-Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:39244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fISNT-0000ok-VR for emacs-devel@gnu.org; Tue, 15 May 2018 01:20:00 -0400 Original-Received: by mail-it0-x22c.google.com with SMTP id c3-v6so17083784itj.4 for ; Mon, 14 May 2018 22:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orbitalimpact.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=br8sp9VFqc6sfOrcMd43cpKi0sy19JMI0YRR9pAGu0c=; b=KvJISwc6NW8fSIq00YDbATz7UQR0P/C/dxqG29Q69u2PsY/XvZlgeC+HUki08QKMV3 X0w7PFYWr8cRO9uQ2iaVvX8SLHCD3IWUsWv8oX9lkrXP19gMy1ndenSpSytxqyEtvxYI IgpDexLVzb9WFRkJYtgA8Elzq0lRl/5dcs5FE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=br8sp9VFqc6sfOrcMd43cpKi0sy19JMI0YRR9pAGu0c=; b=VRF2lhqLtl6ybxGoDlQ+7mpZk8ByIO0Dm056MT1wVQafRIVCbBERGtnIZdVjjadwUr hLZhMlldPvyYPtfIaAo7fNl+PqcS3HMZoI0QLi/sgSd2l5pOFLNV/auFTWXk0mPKj7dL ffIQpRos/x2SxeXDC1oyBEjPdnCKOO0HFPotC9brHZDRFO1eE71zdcULwKDtl+sJBOUx GmFBhQVuEEbED21kHqJ/8SXH9peEMJ7dhLYe7emlf9zDNfrEYLZpfoeTmOrYdDJxV0g/ 72J6SJFyionuAYhQhcwRmBLG+rkAESPqinBe6Ns3rNicXyrhBfvR1XTupkzxtW0M+8cf LxRQ== X-Gm-Message-State: ALKqPweG/oAgGgUh23QggYWZ888fiU2OIFM0J/RzTua5YlxPEj+ZIUEc dj93wW+c56CmY81DFwlucRJg6mjS X-Google-Smtp-Source: AB8JxZpkm8tLRD1IchBxAT4XAdJge0TOMTmJB3PPLej1a/2H3yVo8AoJptQLePPntY4CXUcPK7FfKA== X-Received: by 2002:a6b:a583:: with SMTP id o125-v6mr13578141ioe.130.1526361598673; Mon, 14 May 2018 22:19:58 -0700 (PDT) Original-Received: from lehi.dev.orbitalimpact.com (ip-2-39-52-196.chicago.us.northamericancoax.com. [196.52.39.2]) by smtp.gmail.com with ESMTPSA id m31-v6sm4847329iti.30.2018.05.14.22.19.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 22:19:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22c 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:225301 Archived-At: Hi all, I recently submitted a couple of patches to the Emacs Mac Port by Mitsuharu Yamamoto. The pull request can be seen here: https://bitbucket.org/mituharu/emacs-mac/pull-requests/2/add-multi-tty-supp= ort-to-be-on-par-with/diff These patches were basically the continuation of this thread that I started back in January: https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00373.html Yet, there is a problem with all this which is mentioned in Alan Third's message on that thread: > [...] if you do this on the NS port: > Open GUI instance > start server > run =E2=80=98emacsclient -t=E2=80=99 in the terminal > close GUI frame > You can=E2=80=99t open a new GUI frame, even though the GUI instance with= the > server is still running. You can see it in the dock, and access the > menus, but I can=E2=80=99t find any way to create a new frame. ( https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00430.html ) The same issue occurs with my patches to the Mac Port and it seems to be a problem with macOS's dock. Fortunately, there is an Elisp package by Ryan C. Thompson which addresses this problem: https://github.com/DarwinAwardWinner/osx-pseudo-daemon This package implements a "pseudo-daemon" which is described as such: > If you've ever tried to use Emacs in daemon mode on Mac OS, you might > have noticed that after you close the last graphical Emacs client > frame, the Emacs dock icon and menu bar become non-functional until > you create a new graphical frame. This package implements nearly > identical behavior to daemon mode using a simple hack: whenever the > last graphical frame is closed, a new hidden frame is created. The > next time Emacs is activated, the hidden frame is revealed. The result > is essentially the same as using daemon mode, but without the > drawbacks. I actually have been using this package constantly for a couple of years now and it is a very reliable hack which basically solves this issue. I asked Yamamoto in my above pull request whether he would want to include this package in the Mac Port in order to solve the issue (re)introduced by my patches, and he suggested that I present it to the Emacs upstream first. In his words: > How about proposing inclusion of osx-pseudo-daemon upstream (for the > NS port, of course)? I'd like to avoid enabling premature/unstable > multi-tty with GUI as well as diverging from upstream for easier > maintenance. So here I am :) Ryan C. Thompson's package is licensed under the GPLv3 so I suppose that it could be included into the NS port if he signs the copyright paperwork. It may also need a bit more firming-up before heading into the mainline, but I think it's pretty solid as-is. Thoughts? Thanks, - George Plymale II