From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Ryan C. Thompson" Newsgroups: gmane.emacs.bugs Subject: bug#14619: closed (Re: bug#21357: 24.5; Daemon leaves Mac OSX App open after closing GUI frame) Date: Sat, 9 Oct 2021 12:02:10 -0400 Message-ID: References: <51BB5102.3050105@thompsonclan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5387"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 To: 14619@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 09 18:03:31 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZEor-0001EH-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 18:03:29 +0200 Original-Received: from localhost ([::1]:40528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZEoq-00020m-2K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 12:03:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZEoQ-0001y7-5P for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 12:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZEoP-0001wi-Td for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 12:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZEoP-0001Dt-LN for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 12:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Ryan C. Thompson" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Oct 2021 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14619 X-GNU-PR-Package: emacs Original-Received: via spool by 14619-submit@debbugs.gnu.org id=B14619.16337953464655 (code B ref 14619); Sat, 09 Oct 2021 16:03:01 +0000 Original-Received: (at 14619) by debbugs.gnu.org; 9 Oct 2021 16:02:26 +0000 Original-Received: from localhost ([127.0.0.1]:54029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZEnp-0001D1-W2 for submit@debbugs.gnu.org; Sat, 09 Oct 2021 12:02:26 -0400 Original-Received: from mail-qk1-f177.google.com ([209.85.222.177]:46875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZEnk-0001Cl-MU for 14619@debbugs.gnu.org; Sat, 09 Oct 2021 12:02:24 -0400 Original-Received: by mail-qk1-f177.google.com with SMTP id bk7so3487360qkb.13 for <14619@debbugs.gnu.org>; Sat, 09 Oct 2021 09:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thompsonclan-org.20210112.gappssmtp.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=qAXxhf50vE3bQJpg7d8653lULYfreMZOgRfZsu2OtRY=; b=IfYMJyVO4APoluvsmgKQNftl4/XXN25yCCHhjYn1BYXcRxyuwUtBBgmRMK6CHG3UJJ aqbT+aec5ouVbtb4kwCNYMJ950yxLQRlns/OQvFeapn2Z905MkPpaIhvrgGD2fkiR+iJ zajmK8SG9JlcTxWMD1W49x/rGkjDwPadBUGaTxYKHoV0jv6FE5RytyRHg8LXhwyv+XZe u/PTaI9USY7+K/WQrPJrZe95MKHNXVslgEaVPs9vXigGqHzZPxosjaksU0WTPXcZeoE5 Dh/52TzeQF+pB7zsnQMaOg6KT+s4Qpra+Gberf89N8DBnNLCN3eiCtDCltlcS9X88Ual Xs2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=qAXxhf50vE3bQJpg7d8653lULYfreMZOgRfZsu2OtRY=; b=XmUpqde2FuOL9tsjCnY1QnJirTcDYhUqr/9rvRldDNlBbzx8uD9m5sRnKsOD1mFPru P6vbE2cbe3h5kxdQ7AtzpihTCzeaFHc3ZIUwjuPvxpM9Ww1Hap4CsGoaAZ3Hl1Q2U5F5 jtp8brMkRP3BsQQK1itIKmLG4lm/O507pkzRTW469eKM3cAA38OAvzDX2JixLfN4kjxm hvjbDfKY6c/ECQL66Cp5qd7Ceenzr+uAqF8+AfsOC0DMEkJ0IN/PYz77vUzywDG54iGk nDO/sKVknmb29dY6rHZxL9bpbmY4Ka172NVYdzVWV/yICTBBe64vX9OIzgwUY5N6lzUd xl0A== X-Gm-Message-State: AOAM530t7km8lHGVzt3AVpuJxOwpwv6x9skjori34olySunEEVoW81r5 eoOfqIGVXfGk1TSXEC0kUURD1ADeDZWuvhh2 X-Google-Smtp-Source: ABdhPJxpPK0Y1rJuJWhSJMh7CsYAllcUOxSykBe+RFBcpO+SRXvPcdUJTJkxQf3lsf9+W/CaFMsfBA== X-Received: by 2002:a37:bc07:: with SMTP id m7mr7989585qkf.54.1633795334526; Sat, 09 Oct 2021 09:02:14 -0700 (PDT) Original-Received: from urania.local ([2601:8c:4002:a330:9433:870a:9dd8:c5d5]) by smtp.gmail.com with ESMTPSA id c4sm1655604qkf.122.2021.10.09.09.02.13 for <14619@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Oct 2021 09:02:13 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216779 Archived-At: On 10/9/21 10:58 AM, GNU bug Tracking System wrote: > Your bug report > > #21357: 24.3; Daemon mode and NS App could play nicer together > > which was filed against the emacs package, has been closed. > > The explanation is attached below, along with your original report. > If you require more details, please reply to 14619@debbugs.gnu.org. Ok, I have tested this a bit, and I think it's an improvement over the previous behavior. However, I notice some weird edge cases that would need to be fixed before I could recommend this for general use. Try the following: 0. Start with no emacs running 1. Run "emacs --daemon". The emacs daemon should launch normally. 2. Try to launch the Emacs app normally. Nothing happens. I'm not sure exactly what *should* happen when you do this, but doing nothing is clearly wrong. Possibly defensible choices include: - automatically detecting a running daemon and running "emacsclient -c" instead of "emacs" - ignoring the daemon and launching a separate non-daemon instance of Emacs - Popping up a dialogue box informing the user that there's already an emacs daemon running? - Somehow making this a user preference? In addition, "emacsclient -c" does indeed create a new frame and activate the NS app, but that frame is created behind all other OS windows, unless it is the frame created upon launch by "emacsclient -c -a ''", in which case it appears in front of all other OS windows. This seems like it should be governed by a preference, but the default should probably be to appear in front, or else the user might not realize that the frame was actually created.